Skip to content

Commit

Permalink
0.1.15
Browse files Browse the repository at this point in the history
add possibility to set the scroll listener to a specific element
  • Loading branch information
dkern committed Dec 16, 2013
1 parent b46a4d7 commit b6621ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions jquery.lazy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Lazy - v0.1.14
* jQuery Lazy - v0.1.15
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2013, Daniel 'Eisbehr' Kern
Expand All @@ -26,6 +26,7 @@
threshold : 500,
fallbackHeight : 2000,
visibleOnly : true,
appendScroll : window,

// delay
delay : -1,
Expand Down Expand Up @@ -185,8 +186,8 @@
lazyLoadImages(false);

// bind lazy load functions to scroll and resize event
$(window).bind("scroll", _throttle(configuration.throttle, lazyLoadImages));
$(window).bind("resize", _throttle(configuration.throttle, lazyLoadImages));
$(configuration.appendScroll).bind("scroll", _throttle(configuration.throttle, lazyLoadImages));
$(configuration.appendScroll).bind("resize", _throttle(configuration.throttle, lazyLoadImages));
}
}

Expand Down
4 changes: 2 additions & 2 deletions jquery.lazy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lazy.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lazy",
"version": "0.1.14",
"version": "0.1.15",
"title": "jQuery Lazy Image Loader",
"author":
{
Expand Down

0 comments on commit b6621ea

Please sign in to comment.