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

4
jquery.isotope.min.js vendored

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