Browse Source

πŸ‘· build v3.0.3; πŸ“… 2017

pull/427/merge v3.0.3
David DeSandro 8 years ago
parent
commit
c34c5cb500
  1. 2
      README.md
  2. 43
      dist/isotope.pkgd.js
  3. 8
      dist/isotope.pkgd.min.js
  4. 4
      js/isotope.js
  5. 2
      package.json

2
README.md

@ -82,4 +82,4 @@ Add a `data-isotope` attribute to your element. Options can be set in JSON in th
* * *
By [Metafizzy](http://metafizzy.co), 2010–2016
By [Metafizzy](http://metafizzy.co), 2010–2017

43
dist/isotope.pkgd.js vendored

@ -1,11 +1,11 @@
/*!
* Isotope PACKAGED v3.0.2
* Isotope PACKAGED v3.0.3
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* http://isotope.metafizzy.co
* Copyright 2016 Metafizzy
* Copyright 2017 Metafizzy
*/
/**
@ -473,7 +473,7 @@ return getSize;
});
/**
* matchesSelector v2.0.1
* matchesSelector v2.0.2
* matchesSelector( element, '.selector' )
* MIT license
*/
@ -499,7 +499,7 @@ return getSize;
'use strict';
var matchesMethod = ( function() {
var ElemProto = Element.prototype;
var ElemProto = window.Element.prototype;
// check for the standard method name first
if ( ElemProto.matches ) {
return 'matches';
@ -527,7 +527,7 @@ return getSize;
}));
/**
* Fizzy UI utils v2.0.3
* Fizzy UI utils v2.0.4
* MIT license
*/
@ -588,7 +588,8 @@ utils.makeArray = function( obj ) {
if ( Array.isArray( obj ) ) {
// use object if already an array
ary = obj;
} else if ( obj && typeof obj.length == 'number' ) {
} else if ( obj && typeof obj == 'object' &&
typeof obj.length == 'number' ) {
// convert nodeList to array
for ( var i=0; i < obj.length; i++ ) {
ary.push( obj[i] );
@ -2900,13 +2901,13 @@ return Vertical;
}));
/*!
* Isotope v3.0.2
* Isotope v3.0.3
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* http://isotope.metafizzy.co
* Copyright 2016 Metafizzy
* Copyright 2017 Metafizzy
*/
( function( window, factory ) {
@ -3303,20 +3304,28 @@ var trim = String.prototype.trim ?
// sort filteredItem order
proto._sort = function() {
var sortByOpt = this.options.sortBy;
if ( !sortByOpt ) {
if ( !this.options.sortBy ) {
return;
}
// concat all sortBy and sortHistory
var sortBys = [].concat.apply( sortByOpt, this.sortHistory );
// keep track of sortBy History
var sortBys = utils.makeArray( this.options.sortBy );
if ( !this._getIsSameSortBy( sortBys ) ) {
// concat all sortBy and sortHistory, add to front, oldest goes in last
this.sortHistory = sortBys.concat( this.sortHistory );
}
// sort magic
var itemSorter = getItemSorter( sortBys, this.options.sortAscending );
var itemSorter = getItemSorter( this.sortHistory, this.options.sortAscending );
this.filteredItems.sort( itemSorter );
// keep track of sortBy History
if ( sortByOpt != this.sortHistory[0] ) {
// add to front, oldest goes in last
this.sortHistory.unshift( sortByOpt );
};
// check if sortBys is same as start of sortHistory
proto._getIsSameSortBy = function( sortBys ) {
for ( var i=0; i < sortBys.length; i++ ) {
if ( sortBys[i] != this.sortHistory[i] ) {
return false;
}
}
return true;
};
// returns a function used for sorting

8
dist/isotope.pkgd.min.js vendored

File diff suppressed because one or more lines are too long

4
js/isotope.js

@ -1,11 +1,11 @@
/*!
* Isotope v3.0.2
* Isotope v3.0.3
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* http://isotope.metafizzy.co
* Copyright 2016 Metafizzy
* Copyright 2017 Metafizzy
*/
( function( window, factory ) {

2
package.json

@ -1,6 +1,6 @@
{
"name": "isotope-layout",
"version": "3.0.2",
"version": "3.0.3",
"description": "Filter and sort magical layouts",
"main": "js/isotope.js",
"dependencies": {

Loading…
Cancel
Save