-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem in the handler function #9
Comments
I temporary put this two lines in the handler function, I know this is not optimized but it work var handler = function() {
every time the handler function is called (for every scroll event) I recalculate the lastChoise |
Hi, I found another solution but I need your opinion. var itemsWatcher = scope.$watch('$select.items', function(newItems, oldItems) { in the handler function I put this code: var handler = function() { because the function that will download the new items is async I make another check if the newLastChoice is different from the previous so at the next scroll event I decided to evaluate the last choice again. The itemsWatcher has to be destroyed in the scope.$on('$destroy', function() { Please let me know |
is this still being maintained? |
@zukilover sure |
Hi, I think there is a problem in the handler function.
After the first time the scroll go to the end and is fired the event to load data, the handler function does not update the rows and the lastChoice variable so for every scroll is fired the event to load data.
Maybe I don't understand very well to use the extension.
Please let me know.
Best regards
Enrico
The text was updated successfully, but these errors were encountered: