Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

event.target instead of this in imgLoaded; v1.0.4

Fixes #5
  • Loading branch information...
commit 68ea2800416cda4c8b1db65654e691a4d96d3fe1 1 parent e8117ce
@desandro authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.imagesloaded.js
View
6 jquery.imagesloaded.js
@@ -1,5 +1,5 @@
/*!
- * jQuery imagesLoaded plugin v1.0.3
+ * jQuery imagesLoaded plugin v1.0.4
* http://github.com/desandro/imagesloaded
*
* MIT License. by Paul Irish et al.
@@ -27,8 +27,8 @@
callback.call( $this, $images );
}
- function imgLoaded() {
- if ( --len <= 0 && this.src !== blank ){
+ function imgLoaded( event ) {
+ if ( --len <= 0 && event.target.src !== blank ){
@gnarf
gnarf added a note

Is it just me -- or should this --len only be performed if event.target.src !== blank -- in which case - it should be on the right hand side of the &&

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
setTimeout( triggerCallback );
$images.unbind( 'load error', imgLoaded );
}
@gnarf

Is it just me -- or should this --len only be performed if event.target.src !== blank -- in which case - it should be on the right hand side of the &&

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