Skip to content
Browse files

Rename function to be more clear

  • Loading branch information...
1 parent 7f04765 commit 8bd5817188d9e6de340d6977cb1d18611d0bbd64 @jedmao jedmao committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.inview.js
View
4 jquery.inview.js
@@ -79,7 +79,7 @@
});
}
- function createFunctionToLimitExecutionToOncePerDelay(fn, delay) {
+ function createFunctionLimitedToOneExecutionPerDelay(fn, delay) {
var shouldRun = false;
var timer = null;
@@ -103,7 +103,7 @@
// ready.inview kicks the event to pick up any elements already in view.
// note however, this only works if the plugin is included after the elements are bound to 'inview'
- var runner = createFunctionToLimitExecutionToOncePerDelay(checkInView, 100);
+ var runner = createFunctionLimitedToOneExecutionPerDelay(checkInView, 100);
$(window).on('checkInView.inview click.inview ready.inview scroll.inview resize.inview', runner);
})(jQuery);

0 comments on commit 8bd5817

Please sign in to comment.
Something went wrong with that request. Please try again.