Skip to content

Commit

Permalink
Rename show_invisible to skip_invisible. This is easier to document s…
Browse files Browse the repository at this point in the history
…ince we can avoid double negatives.
  • Loading branch information
tuupola committed Dec 1, 2011
1 parent 3e6c8cc commit a6195c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.textile
Expand Up @@ -5,7 +5,7 @@ h4. 1.6.0
* Rename original attribute to data-original to be HTML5 friendly.
* Remove all code regarding placeholder and automatically removing src attribute. It does not work with modern browsers. Must use data-original attribute instead.
* Add support for James Padolseys "scrollstop event":http://james.padolsey.com/javascript/special-scroll-events-for-jquery/. Use when you have hundreds of images.
* Add _show_invisible_ parameter. When false plugin will skip invisible images. Patch by "Valentin Zwick":https://github.com/vzwick.
* Add _skip_invisible_ parameter. When true plugin will skip invisible images. Patch by "Valentin Zwick":https://github.com/vzwick.

h4. 1.5.0

Expand Down
4 changes: 2 additions & 2 deletions jquery.lazyload.js
Expand Up @@ -21,7 +21,7 @@
event : "scroll",
effect : "show",
container : window,
show_invisible : true
skip_invisible : true
};

if(options) {
Expand All @@ -40,7 +40,7 @@
$(settings.container).bind(settings.event, function(event) {
var counter = 0;
elements.each(function() {
if (!settings.show_invisible && !$(this).is(":visible")) return;
if (settings.skip_invisible && !$(this).is(":visible")) return;
if ($.abovethetop(this, settings) ||
$.leftofbegin(this, settings)) {
/* Nothing. */
Expand Down

0 comments on commit a6195c2

Please sign in to comment.