Browse Source

Remove onscroll

pull/1785/merge
jlukic 9 years ago
parent
commit
9a290c9aba
1 changed files with 0 additions and 3 deletions
  1. 3
      src/definitions/behaviors/visibility.js

3
src/definitions/behaviors/visibility.js

@ -142,13 +142,11 @@ $.fn.visibility = function(parameters) {
if(settings.throttle) { if(settings.throttle) {
clearTimeout(module.timer); clearTimeout(module.timer);
module.timer = setTimeout(function() { module.timer = setTimeout(function() {
settings.onScroll.call(element);
module.checkVisibility(); module.checkVisibility();
}, settings.throttle); }, settings.throttle);
} }
else { else {
requestAnimationFrame(function() { requestAnimationFrame(function() {
settings.onScroll.call(element);
module.checkVisibility(); module.checkVisibility();
}); });
} }
@ -1020,7 +1018,6 @@ $.fn.visibility.settings = {
// utility callbacks // utility callbacks
onUpdate : false, // disabled by default for performance onUpdate : false, // disabled by default for performance
onRefresh : function(){}, onRefresh : function(){},
onScroll : function(){},
className: { className: {
fixed: 'fixed' fixed: 'fixed'

Loading…
Cancel
Save