Skip to content

Commit

Permalink
jsdoc-like comment header; v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Aug 30, 2011
1 parent 58a42e6 commit 1a41e59
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions jquery.imagesloaded.js
@@ -1,14 +1,20 @@
/*!
* jQuery imagesLoaded plugin v1.0.1
* http://github.com/desandro/imagesloaded
*
* MIT License
* Original author: Paul Irish
* Contributors: Yiannis Chatzikonstantinou, David DeSandro
* Oren Solomianik, Adam J. Sontag, Sascha Depold
*/

// $('#my-container').imagesLoaded(myFunction) // $('#my-container').imagesLoaded(myFunction)
// execute a callback when all images have loaded. // execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images // needed because .load() doesn't work on cached images


// callback function gets image collection as argument // callback function gets image collection as argument
// `this` is the container // `this` is the container


// original: mit license. paul irish. 2010.
// contributors: Yiannis Chatzikonstantinou, David DeSandro
// Oren Solomianik, Adam J. Sontag, Sascha Depold

(function($) { (function($) {
$.fn.imagesLoaded = function( callback ) { $.fn.imagesLoaded = function( callback ) {
var $images = this.find('img'), var $images = this.find('img'),
Expand Down

0 comments on commit 1a41e59

Please sign in to comment.