diff --git a/js/isotope.js b/js/isotope.js index c48bffd..dc20fce 100644 --- a/js/isotope.js +++ b/js/isotope.js @@ -8,7 +8,7 @@ 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ 'outlayer/outlayer', @@ -25,7 +25,7 @@ function( Outlayer, getSize, matchesSelector, utils, Item, LayoutMode ) { return factory( window, Outlayer, getSize, matchesSelector, utils, Item, LayoutMode ); }); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( window, @@ -256,7 +256,7 @@ var getText = docElem.textContent ? return jQuery( item.element ).is( filter ); }; } - if ( typeof filter === 'function' ) { + if ( typeof filter == 'function' ) { // use filter as function return function( item ) { return filter( item.element ); @@ -323,7 +323,7 @@ var getText = docElem.textContent ? // `.foo-bar parseInt` will parse that as a number function mungeSorter( sorter ) { // if not a string, return function or whatever it is - if ( typeof sorter !== 'string' ) { + if ( typeof sorter != 'string' ) { return sorter; } // parse the sorter string @@ -392,7 +392,7 @@ var getText = docElem.textContent ? var itemSorter = getItemSorter( sortBys, this.options.sortAscending ); this.filteredItems.sort( itemSorter ); // keep track of sortBy History - if ( sortByOpt !== this.sortHistory[0] ) { + if ( sortByOpt != this.sortHistory[0] ) { // add to front, oldest goes in last this.sortHistory.unshift( sortByOpt ); } diff --git a/js/item.js b/js/item.js index 5a5cc90..40aa25c 100644 --- a/js/item.js +++ b/js/item.js @@ -5,13 +5,13 @@ ( function( window, factory ) { 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ 'outlayer/outlayer' ], factory ); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( require('outlayer') diff --git a/js/layout-mode.js b/js/layout-mode.js index 0d3d204..012583f 100644 --- a/js/layout-mode.js +++ b/js/layout-mode.js @@ -6,14 +6,14 @@ 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ 'get-size/get-size', 'outlayer/outlayer' ], factory ); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( require('get-size'), @@ -78,7 +78,7 @@ // check that this.size and size are there // IE8 triggers resize on body size change, so they might not be var hasSizes = this.isotope.size && size; - return hasSizes && size.innerHeight !== this.isotope.size.innerHeight; + return hasSizes && size.innerHeight != this.isotope.size.innerHeight; }; // ----- measurements ----- // diff --git a/js/layout-modes/fit-rows.js b/js/layout-modes/fit-rows.js index 446ea25..582d2c5 100644 --- a/js/layout-modes/fit-rows.js +++ b/js/layout-modes/fit-rows.js @@ -5,13 +5,13 @@ ( function( window, factory ) { 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ '../layout-mode' ], factory ); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( require('../layout-mode') diff --git a/js/layout-modes/masonry.js b/js/layout-modes/masonry.js index 1a53a0d..5f72057 100644 --- a/js/layout-modes/masonry.js +++ b/js/layout-modes/masonry.js @@ -7,14 +7,14 @@ ( function( window, factory ) { 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ '../layout-mode', 'masonry/masonry' ], factory ); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( require('../layout-mode'), diff --git a/js/layout-modes/vertical.js b/js/layout-modes/vertical.js index d5595ee..35c425e 100644 --- a/js/layout-modes/vertical.js +++ b/js/layout-modes/vertical.js @@ -5,13 +5,13 @@ ( function( window, factory ) { 'use strict'; // universal module definition - if ( typeof define === 'function' && define.amd ) { + if ( typeof define == 'function' && define.amd ) { // AMD define( [ '../layout-mode' ], factory ); - } else if ( typeof exports === 'object' ) { + } else if ( typeof exports == 'object' ) { // CommonJS module.exports = factory( require('../layout-mode')