Skip to content

Commit

Permalink
Merge pull request desandro#26 from desandro/hints1
Browse files Browse the repository at this point in the history
add JSHint options
  • Loading branch information
desandro committed Feb 28, 2012
2 parents 46720a0 + 9e87661 commit 9dbd5a1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jquery.imagesloaded.js
@@ -1,9 +1,13 @@
/*!
* jQuery imagesLoaded plugin v2.0.0
* jQuery imagesLoaded plugin v2.0.1
* http://github.com/desandro/imagesloaded
*
* MIT License. by Paul Irish et al.
*/

/*jshint curly: true, eqeqeq: true, noempty: true, strict: true, undef: true, browser: true */
/*global jQuery: false */

;(function($, undefined) {
'use strict';

Expand Down Expand Up @@ -73,7 +77,7 @@ $.fn.imagesLoaded = function( callback ) {
} else {
$images.bind( 'load.imagesLoaded error.imagesLoaded', function( event ){
// trigger imgLoaded
imgLoaded( event.target, event.type == 'error' );
imgLoaded( event.target, event.type === 'error' );
}).each( function( i, el ) {
var src = el.src;

Expand Down

0 comments on commit 9dbd5a1

Please sign in to comment.