Browse files

clean up

  • Loading branch information...
1 parent 1ed289f commit ae678f66b4cec92f6d9dc96a50ce713055ca2577 pixelbreaker committed Jun 13, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 takeoverloader/jquery.takeoverloader-0.1.js
  2. +1 −1 takeoverloader/jquery.takeoverloader-0.1.min.js
View
4 takeoverloader/jquery.takeoverloader-0.1.js
@@ -22,9 +22,9 @@
var getAllImages = function()
{
- el.find('img:not([src=""]):not(.noloader)').each(function( i, el )
+ el.find('img:not([src=""]):not(.noloader)').each(function()
{
- images_.push( {uri: $(el).attr('src'), el:el} );
+ images_.push( {uri: $(this).attr('src'), el:this} );
});
numImages_ = images_.length;
};
View
2 takeoverloader/jquery.takeoverloader-0.1.min.js
@@ -8,4 +8,4 @@
*
* Date: 2011-06-11
*/
-(function(b){b.fn.takeoverloader=function(f,g){var h=this,c=[],d,i=f||function(){},j=g||function(){},e=function(){d--;i(1-d/c.length);d==0&&(b.each(c,function(c,a){b(a.el).unbind("load")}),j())};(function(){h.find('img:not([src=""]):not(.noloader)').each(function(d,a){c.push({uri:b(a).attr("src"),el:a})});d=c.length})();(function(){b.each(c,function(c,a){b(a.el);a.el.complete?e():b(a.el).load(function(){e()})})})()}})(jQuery);
+(function(a){a.fn.takeoverloader=function(f,g){var h=this,b=[],d,i=f||function(){},j=g||function(){},e=function(){d--;i(1-d/b.length);d==0&&(a.each(b,function(b,c){a(c.el).unbind("load")}),j())};(function(){h.find('img:not([src=""]):not(.noloader)').each(function(){b.push({uri:a(this).attr("src"),el:this})});d=b.length})();(function(){a.each(b,function(b,c){a(c.el);c.el.complete?e():a(c.el).load(function(){e()})})})()}})(jQuery);

0 comments on commit ae678f6

Please sign in to comment.