From 9a290c9aba48046fd09d6c8653451da9efa1814f Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 3 Mar 2015 17:43:31 -0500 Subject: [PATCH] Remove onscroll --- src/definitions/behaviors/visibility.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index 501f64b51..afb2ccaf6 100644 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -142,13 +142,11 @@ $.fn.visibility = function(parameters) { if(settings.throttle) { clearTimeout(module.timer); module.timer = setTimeout(function() { - settings.onScroll.call(element); module.checkVisibility(); }, settings.throttle); } else { requestAnimationFrame(function() { - settings.onScroll.call(element); module.checkVisibility(); }); } @@ -1020,7 +1018,6 @@ $.fn.visibility.settings = { // utility callbacks onUpdate : false, // disabled by default for performance onRefresh : function(){}, - onScroll : function(){}, className: { fixed: 'fixed'