mirror of
https://github.com/wahyd4/cdnjs.git
synced 2026-08-11 13:56:35 +10:00
v5.0.0 typo fix
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
nanoGALLERY v5.0.0beta
|
||||
nanoGALLERY v5.0.0
|
||||
Plugin for jQuery by Christophe Brisbois
|
||||
Demo: http://nanogallery.brisbois.fr
|
||||
Sources: https://github.com/Kris-B/nanoGALLERY
|
||||
@@ -262,4 +262,4 @@ F.prototype.options={};F.prototype.getImages=function(){this.images=[];for(var h
|
||||
var f=this,l=0,r=this.images.length;this.hasAnyBroken=!1;if(r)for(var p=0;p<r;p++){var s=this.images[p];s.on("confirm",h);s.check()}else this.complete()};F.prototype.progress=function(h){this.hasAnyBroken=this.hasAnyBroken||!h.isLoaded;var f=this;setTimeout(function(){f.emit("progress",f,h);f.jqDeferred&&f.jqDeferred.notify&&f.jqDeferred.notify(f,h)})};F.prototype.complete=function(){var h=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var f=this;setTimeout(function(){f.emit(h,f);f.emit("always",
|
||||
f);if(f.jqDeferred)f.jqDeferred[f.hasAnyBroken?"reject":"resolve"](f)})};r&&(r.fn.ngimagesLoaded=function(h,f){return(new F(this,h,f)).jqDeferred.promise(r(this))});l.prototype=new I;l.prototype.check=function(){var l=ba[this.img.src]||new h(this.img.src);if(l.isConfirmed)this.confirm(l.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var f=this;l.on("confirm",function(h,l){f.confirm(h.isLoaded,l);
|
||||
return!0});l.check()}};l.prototype.confirm=function(h,f){this.isLoaded=h;this.emit("confirm",this,f)};var ba={};h.prototype=new I;h.prototype.check=function(){if(!this.isChecked){var h=new Image;H.bind(h,"load",this);H.bind(h,"error",this);h.src=this.src;this.isChecked=!0}};h.prototype.handleEvent=function(h){var f="on"+h.type;if(this[f])this[f](h)};h.prototype.onload=function(h){this.confirm(!0,"onload");this.unbindProxyEvents(h)};h.prototype.onerror=function(h){this.confirm(!1,"onerror");this.unbindProxyEvents(h)};
|
||||
h.prototype.confirm=function(h,f){this.isConfirmed=!0;this.isLoaded=h;this.emit("confirm",this,f)};h.prototype.unbindProxyEvents=function(h){H.unbind(h.target,"load",this);H.unbind(h.target,"error",this)};return F});
|
||||
h.prototype.confirm=function(h,f){this.isConfirmed=!0;this.isLoaded=h;this.emit("confirm",this,f)};h.prototype.unbindProxyEvents=function(h){H.unbind(h.target,"load",this);H.unbind(h.target,"error",this)};return F});
|
||||
|
||||
Reference in New Issue
Block a user