Browse Source

src : use $.Isotope.settings

pull/27/merge
David DeSandro 14 years ago
parent
commit
ad26aaaf27
  1. 52
      jquery.isotope.js

52
jquery.isotope.js

@ -1,5 +1,5 @@
/** /**
* Isotope v1.1.110426 * Isotope v1.1.110502
* An exquisite jQuery plugin for magical layouts * An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co * http://isotope.metafizzy.co
* *
@ -334,33 +334,33 @@
// 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' ];
$.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 = { $.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 ) { _filterFind: function( $elems, selector ) {
return selector ? $elems.filter( selector ).add( $elems.find( selector ) ) : $elems; return selector ? $elems.filter( selector ).add( $elems.find( selector ) ) : $elems;
}, },
@ -368,7 +368,7 @@
// sets up widget // sets up widget
_create : function( options ) { _create : function( options ) {
this.options = $.extend( true, {}, this.options, options ); this.options = $.extend( true, {}, $.Isotope.settings, options );
this.isNew = {}; this.isNew = {};
this.styleQueue = []; this.styleQueue = [];

Loading…
Cancel
Save