|
|
@ -1,5 +1,5 @@ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Isotope v1.4.110901 |
|
|
|
* Isotope v1.4.110906 |
|
|
|
* An exquisite jQuery plugin for magical layouts |
|
|
|
* An exquisite jQuery plugin for magical layouts |
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* |
|
|
|
* |
|
|
@ -358,6 +358,7 @@ |
|
|
|
// sorting
|
|
|
|
// sorting
|
|
|
|
var originalOrderSorter = { |
|
|
|
var originalOrderSorter = { |
|
|
|
'original-order' : function( $elem, instance ) { |
|
|
|
'original-order' : function( $elem, instance ) { |
|
|
|
|
|
|
|
instance.elemCount ++; |
|
|
|
return instance.elemCount; |
|
|
|
return instance.elemCount; |
|
|
|
}, |
|
|
|
}, |
|
|
|
random : function() { |
|
|
|
random : function() { |
|
|
@ -513,13 +514,15 @@ |
|
|
|
sortData = {}; |
|
|
|
sortData = {}; |
|
|
|
// get value for sort data based on fn( $elem ) passed in
|
|
|
|
// get value for sort data based on fn( $elem ) passed in
|
|
|
|
for ( var key in getSortData ) { |
|
|
|
for ( var key in getSortData ) { |
|
|
|
|
|
|
|
if ( !isIncrementingElemCount && key === 'original-order' ) { |
|
|
|
|
|
|
|
// keep original order original
|
|
|
|
|
|
|
|
sortData[ key ] = $.data( this, 'isotope-sort-data' )[ key ]; |
|
|
|
|
|
|
|
} else { |
|
|
|
sortData[ key ] = getSortData[ key ]( $this, instance ); |
|
|
|
sortData[ key ] = getSortData[ key ]( $this, instance ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// apply sort data to element
|
|
|
|
// apply sort data to element
|
|
|
|
$.data( this, 'isotope-sort-data', sortData ); |
|
|
|
$.data( this, 'isotope-sort-data', sortData ); |
|
|
|
if ( isIncrementingElemCount ) { |
|
|
|
|
|
|
|
instance.elemCount ++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -638,7 +641,6 @@ |
|
|
|
addItems : function( $content, callback ) { |
|
|
|
addItems : function( $content, callback ) { |
|
|
|
var $newAtoms = this._getAtoms( $content ); |
|
|
|
var $newAtoms = this._getAtoms( $content ); |
|
|
|
// add new atoms to atoms pools
|
|
|
|
// add new atoms to atoms pools
|
|
|
|
// FIXME : this breaks shuffle order and returns to original order
|
|
|
|
|
|
|
|
this.$allAtoms = this.$allAtoms.add( $newAtoms ); |
|
|
|
this.$allAtoms = this.$allAtoms.add( $newAtoms ); |
|
|
|
|
|
|
|
|
|
|
|
if ( callback ) { |
|
|
|
if ( callback ) { |
|
|
|