Browse Source

src : strict mode enabled

v1.5.12
pull/150/merge v1.5.12
David DeSandro 13 years ago
parent
commit
5a4ec96e4d
  1. 13
      jquery.isotope.js
  2. 4
      jquery.isotope.min.js

13
jquery.isotope.js

@ -1,5 +1,5 @@
/** /**
* Isotope v1.5.11 * Isotope v1.5.12
* An exquisite jQuery plugin for magical layouts * An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co * http://isotope.metafizzy.co
* *
@ -9,11 +9,13 @@
* Copyright 2012 David DeSandro / Metafizzy * Copyright 2012 David DeSandro / Metafizzy
*/ */
/*jshint curly: true, eqeqeq: true, forin: false, immed: false, newcap: true, noempty: true, undef: true */ /*jshint browser: true, curly: true, eqeqeq: true, forin: false, immed: false, newcap: true, noempty: true, strict: true, undef: true */
/*global window: true, jQuery: true */ /*global jQuery: false */
(function( window, $, undefined ){ (function( window, $, undefined ){
'use strict';
// get global vars // get global vars
var document = window.document; var document = window.document;
var Modernizr = window.Modernizr; var Modernizr = window.Modernizr;
@ -1309,8 +1311,9 @@
} }
function imgLoaded( event ) { function imgLoaded( event ) {
if ( event.target.src !== blank && $.inArray( this, loaded ) === -1 ){ var img = event.target;
loaded.push(this); if ( img.src !== blank && $.inArray( img, loaded ) === -1 ){
loaded.push( img );
if ( --len <= 0 ){ if ( --len <= 0 ){
setTimeout( triggerCallback ); setTimeout( triggerCallback );
$images.unbind( '.imagesLoaded', imgLoaded ); $images.unbind( '.imagesLoaded', imgLoaded );

4
jquery.isotope.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save