|
|
@ -1,5 +1,5 @@ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Isotope v1.5.05 |
|
|
|
* Isotope v1.5.06 |
|
|
|
* An exquisite jQuery plugin for magical layouts |
|
|
|
* An exquisite jQuery plugin for magical layouts |
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* http://isotope.metafizzy.co
|
|
|
|
* |
|
|
|
* |
|
|
@ -322,7 +322,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
// styles of container element we want to keep track of
|
|
|
|
// styles of container element we want to keep track of
|
|
|
|
var isoContainerStyles = [ 'overflow', 'position', 'width', 'height' ]; |
|
|
|
var isoContainerStyles = [ 'overflow', 'position', 'width', 'height' ]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $window = $(window); |
|
|
|
|
|
|
|
|
|
|
|
$.Isotope.settings = { |
|
|
|
$.Isotope.settings = { |
|
|
|
resizable: true, |
|
|
|
resizable: true, |
|
|
|
layoutMode : 'masonry', |
|
|
|
layoutMode : 'masonry', |
|
|
@ -398,7 +400,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
// bind resize method
|
|
|
|
// bind resize method
|
|
|
|
if ( this.options.resizable ) { |
|
|
|
if ( this.options.resizable ) { |
|
|
|
$(window).bind( 'smartresize.isotope', function() {
|
|
|
|
$window.bind( 'smartresize.isotope', function() { |
|
|
|
instance.resize(); |
|
|
|
instance.resize(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -463,19 +465,20 @@ |
|
|
|
|
|
|
|
|
|
|
|
_updateAnimationEngine : function() { |
|
|
|
_updateAnimationEngine : function() { |
|
|
|
var animationEngine = this.options.animationEngine.toLowerCase().replace( /[ _\-]/g, ''); |
|
|
|
var animationEngine = this.options.animationEngine.toLowerCase().replace( /[ _\-]/g, ''); |
|
|
|
|
|
|
|
var isUsingJQueryAnimation; |
|
|
|
// set applyStyleFnName
|
|
|
|
// set applyStyleFnName
|
|
|
|
switch ( animationEngine ) { |
|
|
|
switch ( animationEngine ) { |
|
|
|
case 'css' : |
|
|
|
case 'css' : |
|
|
|
case 'none' : |
|
|
|
case 'none' : |
|
|
|
this.isUsingJQueryAnimation = false; |
|
|
|
isUsingJQueryAnimation = false; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'jquery' : |
|
|
|
case 'jquery' : |
|
|
|
this.isUsingJQueryAnimation = true; |
|
|
|
isUsingJQueryAnimation = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
default : // best available
|
|
|
|
default : // best available
|
|
|
|
this.isUsingJQueryAnimation = !Modernizr.csstransitions; |
|
|
|
isUsingJQueryAnimation = !Modernizr.csstransitions; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.isUsingJQueryAnimation = isUsingJQueryAnimation; |
|
|
|
this._updateUsingTransforms(); |
|
|
|
this._updateUsingTransforms(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -814,16 +817,18 @@ |
|
|
|
destroy : function() { |
|
|
|
destroy : function() { |
|
|
|
|
|
|
|
|
|
|
|
var usingTransforms = this.usingTransforms; |
|
|
|
var usingTransforms = this.usingTransforms; |
|
|
|
|
|
|
|
var options = this.options; |
|
|
|
|
|
|
|
|
|
|
|
this.$allAtoms |
|
|
|
this.$allAtoms |
|
|
|
.removeClass( this.options.hiddenClass + ' ' + this.options.itemClass ) |
|
|
|
.removeClass( options.hiddenClass + ' ' + options.itemClass ) |
|
|
|
.each(function(){ |
|
|
|
.each(function(){ |
|
|
|
this.style.position = ''; |
|
|
|
var style = this.style; |
|
|
|
this.style.top = ''; |
|
|
|
style.position = ''; |
|
|
|
this.style.left = ''; |
|
|
|
style.top = ''; |
|
|
|
this.style.opacity = ''; |
|
|
|
style.left = ''; |
|
|
|
|
|
|
|
style.opacity = ''; |
|
|
|
if ( usingTransforms ) { |
|
|
|
if ( usingTransforms ) { |
|
|
|
this.style[ transformProp ] = ''; |
|
|
|
style[ transformProp ] = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -836,11 +841,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
this.element |
|
|
|
this.element |
|
|
|
.unbind('.isotope') |
|
|
|
.unbind('.isotope') |
|
|
|
.undelegate( '.' + this.options.hiddenClass, 'click' ) |
|
|
|
.undelegate( '.' + options.hiddenClass, 'click' ) |
|
|
|
.removeClass( this.options.containerClass ) |
|
|
|
.removeClass( options.containerClass ) |
|
|
|
.removeData('isotope'); |
|
|
|
.removeData('isotope'); |
|
|
|
|
|
|
|
|
|
|
|
$(window).unbind('.isotope'); |
|
|
|
$window.unbind('.isotope'); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|