|
|
|
@ -46,20 +46,20 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector ) {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Isotope.prototype.layout = function() { |
|
|
|
|
// this.filteredItems = this._filter( this.items );
|
|
|
|
|
this.filteredItems = this._filter( this.items ); |
|
|
|
|
// this._sort();
|
|
|
|
|
Outlayer.prototype.layout.call( this ); |
|
|
|
|
// this._mode._resetLayout();
|
|
|
|
|
// this._resetLayout();
|
|
|
|
|
// this._manageStamps();
|
|
|
|
|
//
|
|
|
|
|
// // don't animate first layout
|
|
|
|
|
// var isInstant = this.options.isLayoutInstant !== undefined ?
|
|
|
|
|
// this.options.isLayoutInstant : !this._isLayoutInited;
|
|
|
|
|
// this.layoutItems( this.items, isInstant );
|
|
|
|
|
//
|
|
|
|
|
// // flag for initalized
|
|
|
|
|
// this._isLayoutInited = true;
|
|
|
|
|
// Outlayer.prototype.layout.call( this );
|
|
|
|
|
this._mode()._resetLayout(); |
|
|
|
|
this._resetLayout(); |
|
|
|
|
this._manageStamps(); |
|
|
|
|
|
|
|
|
|
// don't animate first layout
|
|
|
|
|
var isInstant = this.options.isLayoutInstant !== undefined ? |
|
|
|
|
this.options.isLayoutInstant : !this._isLayoutInited; |
|
|
|
|
this.layoutItems( this.filteredItems, isInstant ); |
|
|
|
|
|
|
|
|
|
// flag for initalized
|
|
|
|
|
this._isLayoutInited = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -67,6 +67,7 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector ) {
|
|
|
|
|
|
|
|
|
|
Isotope.prototype._filter = function( items ) { |
|
|
|
|
var filter = this.options.filter; |
|
|
|
|
filter = filter || '*'; |
|
|
|
|
var matches = []; |
|
|
|
|
var unmatches = []; |
|
|
|
|
var hiddenMatched = []; |
|
|
|
@ -111,13 +112,13 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector ) {
|
|
|
|
|
// -------------------------- sort -------------------------- //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Isotope.prototype._sort = function() { |
|
|
|
|
var sortBy = this.options.sortBy; |
|
|
|
|
function sortFn( a, b ) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.filteredItems.sort( ); |
|
|
|
|
}; |
|
|
|
|
// Isotope.prototype._sort = function() {
|
|
|
|
|
// var sortBy = this.options.sortBy;
|
|
|
|
|
// function sortFn( a, b ) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// this.filteredItems.sort( );
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// -------------------------- methods -------------------------- //
|
|
|
|
|
|
|
|
|
|