diff --git a/jquery.isotope.js b/jquery.isotope.js index f977181..391c9ad 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -1,5 +1,5 @@ /** - * Isotope v1.1.110426 + * Isotope v1.1.110502 * An exquisite jQuery plugin for magical layouts * http://isotope.metafizzy.co * @@ -334,33 +334,33 @@ // styles of container element we want to keep track of var isoContainerStyles = [ 'overflow', 'position', 'width', 'height' ]; + + $.Isotope.settings = { + resizable: true, + layoutMode : 'masonry', + containerClass : 'isotope', + itemClass : 'isotope-item', + hiddenClass : 'isotope-hidden', + hiddenStyle : Modernizr.csstransforms && !$.browser.opera ? + { opacity : 0, scale : 0.001 } : // browsers support CSS transforms, not Opera + { opacity : 0 }, // other browsers, including Opera + visibleStyle : Modernizr.csstransforms && !$.browser.opera ? + { opacity : 1, scale : 1 } : // browsers support CSS transforms, not Opera + { opacity : 1 }, // other browsers, including Opera + animationEngine : $.browser.opera ? 'jquery' : 'best-available', + animationOptions: { + queue: false, + duration: 800 + }, + sortBy : 'original-order', + sortAscending : true, + resizesContainer : true, + transformsEnabled : true, + itemPositionDataEnabled: false + }; $.Isotope.prototype = { - options : { - resizable: true, - layoutMode : 'masonry', - containerClass : 'isotope', - itemClass : 'isotope-item', - hiddenClass : 'isotope-hidden', - hiddenStyle : Modernizr.csstransforms && !$.browser.opera ? - { opacity : 0, scale : 0.001 } : // browsers support CSS transforms, not Opera - { opacity : 0 }, // other browsers, including Opera - visibleStyle : Modernizr.csstransforms && !$.browser.opera ? - { opacity : 1, scale : 1 } : // browsers support CSS transforms, not Opera - { opacity : 1 }, // other browsers, including Opera - animationEngine : $.browser.opera ? 'jquery' : 'best-available', - animationOptions: { - queue: false, - duration: 800 - }, - sortBy : 'original-order', - sortAscending : true, - resizesContainer : true, - transformsEnabled : true, - itemPositionDataEnabled: false - }, - _filterFind: function( $elems, selector ) { return selector ? $elems.filter( selector ).add( $elems.find( selector ) ) : $elems; }, @@ -368,7 +368,7 @@ // sets up widget _create : function( options ) { - this.options = $.extend( true, {}, this.options, options ); + this.options = $.extend( true, {}, $.Isotope.settings, options ); this.isNew = {}; this.styleQueue = [];