Browse Source

no strict equals === -> ==

pull/894/head
David DeSandro 10 years ago
parent
commit
74cb825e07
  1. 10
      js/isotope.js
  2. 4
      js/item.js
  3. 6
      js/layout-mode.js
  4. 4
      js/layout-modes/fit-rows.js
  5. 4
      js/layout-modes/masonry.js
  6. 4
      js/layout-modes/vertical.js

10
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 );
}

4
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')

6
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 ----- //

4
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')

4
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'),

4
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')

Loading…
Cancel
Save