Skip to content
This repository
Browse code

Prepare for release.

  • Loading branch information...
commit 7ef91dca3432417b29328350e7ea1587e2aa9723 1 parent 27b1713
Mika Tuupola authored December 20, 2011
1  README.textile
Source Rendered
@@ -6,6 +6,7 @@ h4. 1.6.0
6 6
 * Remove all code regarding placeholder and automatically removing src attribute. It does not work with modern browsers. Must use data-original attribute instead.
7 7
 * Add support for James Padolseys "scrollstop event":http://james.padolsey.com/javascript/special-scroll-events-for-jquery/. Use when you have hundreds of images.
8 8
 * Add _skip_invisible_ parameter. When true plugin will skip invisible images. Patch by "Valentin Zwick":https://github.com/vzwick.
  9
+* Renamed _failurelimit_ parameter to _failure_limit_. Old version will still work couple of versions.
9 10
 
10 11
 h4. 1.5.0
11 12
 
3  enabled_noscript.html
@@ -97,7 +97,8 @@
97 97
   <script type="text/javascript" charset="utf-8">
98 98
       $(function() {          
99 99
           $("img.lazy").show().lazyload({
100  
-             effect      : "fadeIn"
  100
+             effect      : "fadeIn",
  101
+             failurelimit : 0
101 102
           });
102 103
       });
103 104
   </script>
2  jquery.lazyload.js
@@ -9,7 +9,7 @@
9 9
  * Project home:
10 10
  *   http://www.appelsiini.net/projects/lazyload
11 11
  *
12  
- * Version:  1.6.0-dev
  12
+ * Version:  1.6.0
13 13
  *
14 14
  */
15 15
 (function($) {
2  jquery.lazyload.min.js
@@ -9,7 +9,7 @@
9 9
  * Project home:
10 10
  *   http://www.appelsiini.net/projects/lazyload
11 11
  *
12  
- * Version:  1.6.0-dev
  12
+ * Version:  1.6.0
13 13
  *
14 14
  */
15 15
 (function(a){a.fn.lazyload=function(b){var c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:window,skip_invisible:!0};b&&(null!==b.failurelimit&&(b.failure_limit=b.failurelimit,delete b.failurelimit),a.extend(c,b));var d=this;return 0==c.event.indexOf("scroll")&&a(c.container).bind(c.event,function(b){var e=0;d.each(function(){if(c.skip_invisible&&!a(this).is(":visible"))return;if(!a.abovethetop(this,c)&&!a.leftofbegin(this,c))if(!a.belowthefold(this,c)&&!a.rightoffold(this,c))a(this).trigger("appear");else if(++e>c.failure_limit)return!1});var f=a.grep(d,function(a){return!a.loaded});d=a(f)}),this.each(function(){var b=this;b.loaded=!1,a(b).one("appear",function(){this.loaded||a("<img />").bind("load",function(){a(b).hide().attr("src",a(b).data("original"))[c.effect](c.effectspeed),b.loaded=!0}).attr("src",a(b).data("original"))}),0!=c.event.indexOf("scroll")&&a(b).bind(c.event,function(c){b.loaded||a(b).trigger("appear")})}),a(c.container).trigger(c.event),this},a.belowthefold=function(b,c){if(c.container===undefined||c.container===window)var d=a(window).height()+a(window).scrollTop();else var d=a(c.container).offset().top+a(c.container).height();return d<=a(b).offset().top-c.threshold},a.rightoffold=function(b,c){if(c.container===undefined||c.container===window)var d=a(window).width()+a(window).scrollLeft();else var d=a(c.container).offset().left+a(c.container).width();return d<=a(b).offset().left-c.threshold},a.abovethetop=function(b,c){if(c.container===undefined||c.container===window)var d=a(window).scrollTop();else var d=a(c.container).offset().top;return d>=a(b).offset().top+c.threshold+a(b).height()},a.leftofbegin=function(b,c){if(c.container===undefined||c.container===window)var d=a(window).scrollLeft();else var d=a(c.container).offset().left;return d>=a(b).offset().left+c.threshold+a(b).width()},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0,container:window})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0,container:window})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0,container:window})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0,container:window})}})})(jQuery)
2  package.json
... ...
@@ -1,6 +1,6 @@
1 1
 {
2 2
     "name": "lazyload",
3  
-    "version": "1.6.0-dev",
  3
+    "version": "1.6.0",
4 4
     "title": "Lazy Load",
5 5
     "author": {
6 6
         "name": "Mika Tuupola",

0 notes on commit 7ef91dc

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