This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Execute a callback when all images have loaded. | |
* needed because .load() doesn't work on cached images | |
* | |
* Usage: | |
* $('img.photo').imagesLoaded(myFunction) | |
* -> myFunction() { this == [jQuery collection of 'img'] } | |
* | |
* $('img.photo').imagesLoaded(myFunction, myContext) | |
* -> myFunction() { this == myContext } |