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

2
package.json

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

Loading…
Cancel
Save