You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you create such a feature that users to be available to bind more than one event?
Like this:
$('img.lazy').lazyload({
event: 'scroll,foo,bar'
});
The text was updated successfully, but these errors were encountered:
I see in the plugin, the binding is done using jQuery.bind() which accepts multiple event names, but without the comma delimiter you added.
Hence, you should be able to bind to multiple events like this : $('img.lazy').lazyload({event:"scroll foo bar"});
But from what i can see, something else related to this should be fixed. I see the plugin always assumes the 'scroll' event will be first in the method list, and this isn't necessarily correct. I think i will fix this and submit a pull request.
Could you create such a feature that users to be available to bind more than one event?
Like this:
$('img.lazy').lazyload({
event: 'scroll,foo,bar'
});
The text was updated successfully, but these errors were encountered: