Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from desandro/hints1

add JSHint options
  • Loading branch information...
commit 9dbd5a1be05a024f741783372db85411704a0a11 2 parents 46720a0 + 9e87661
@desandro authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 jquery.imagesloaded.js
View
8 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';
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.