|
|
@ -1,5 +1,5 @@ |
|
|
|
/*! |
|
|
|
/*! |
|
|
|
* Isotope PACKAGED v2.0.0 |
|
|
|
* Isotope PACKAGED v2.0.1 |
|
|
|
* Filter & sort magical layouts |
|
|
|
* Filter & sort magical layouts |
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -2719,6 +2719,16 @@ Item.prototype.updateSortData = function() { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _destroy = Item.prototype.destroy; |
|
|
|
|
|
|
|
Item.prototype.destroy = function() { |
|
|
|
|
|
|
|
// call super
|
|
|
|
|
|
|
|
_destroy.apply( this, arguments ); |
|
|
|
|
|
|
|
// reset display, #741
|
|
|
|
|
|
|
|
this.css({ |
|
|
|
|
|
|
|
display: '' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return Item; |
|
|
|
return Item; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -3285,7 +3295,7 @@ if ( typeof define === 'function' && define.amd ) { |
|
|
|
})( window ); |
|
|
|
})( window ); |
|
|
|
|
|
|
|
|
|
|
|
/*! |
|
|
|
/*! |
|
|
|
* Isotope v2.0.0 |
|
|
|
* Isotope v2.0.1 |
|
|
|
* Filter & sort magical layouts |
|
|
|
* Filter & sort magical layouts |
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -3835,6 +3845,17 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, LayoutMode |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Isotope.prototype.shuffle = function() { |
|
|
|
|
|
|
|
// update random sortData
|
|
|
|
|
|
|
|
for ( var i=0, len = this.items.length; i < len; i++ ) { |
|
|
|
|
|
|
|
var item = this.items[i]; |
|
|
|
|
|
|
|
item.sortData.random = Math.random(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.options.sortBy = 'random'; |
|
|
|
|
|
|
|
this._sort(); |
|
|
|
|
|
|
|
this._layout(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* trigger fn without transition |
|
|
|
* trigger fn without transition |
|
|
|
* kind of hacky to have this in the first place |
|
|
|
* kind of hacky to have this in the first place |
|
|
@ -3854,6 +3875,20 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, LayoutMode |
|
|
|
return returnValue; |
|
|
|
return returnValue; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----- helper methods ----- //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* getter method for getting filtered item elements |
|
|
|
|
|
|
|
* @returns {Array} elems - collection of item elements |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Isotope.prototype.getFilteredItemElements = function() { |
|
|
|
|
|
|
|
var elems = []; |
|
|
|
|
|
|
|
for ( var i=0, len = this.filteredItems.length; i < len; i++ ) { |
|
|
|
|
|
|
|
elems.push( this.filteredItems[i].element ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return elems; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// ----- ----- //
|
|
|
|
// ----- ----- //
|
|
|
|
|
|
|
|
|
|
|
|
return Isotope; |
|
|
|
return Isotope; |
|
|
|