diff --git a/isotope.js b/isotope.js index b0e6d51..47f3f7b 100644 --- a/isotope.js +++ b/isotope.js @@ -81,20 +81,17 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, layoutMode }; Isotope.prototype.layout = function( opts ) { + // set any options pass this.option( opts ); - // don't animate first layout var isInstant = this._isInitInstant = this.options.isLayoutInstant !== undefined ? this.options.isLayoutInstant : !this._isLayoutInited; - + // this.filteredItems = this._filter( this.items ); this._sort(); - // Outlayer.prototype.layout.call( this ); + // layout flow this._resetLayout(); this._manageStamps(); - - // var isInstant = this.options.isLayoutInstant !== undefined ? - // this.options.isLayoutInstant : !this._isLayoutInited; this.layoutItems( this.filteredItems, isInstant ); // flag for initalized diff --git a/layout-modes/horizontal.js b/layout-modes/horizontal.js index d3cd230..9b9f1f1 100644 --- a/layout-modes/horizontal.js +++ b/layout-modes/horizontal.js @@ -18,7 +18,6 @@ function horizontalDefinition( layoutMode ) { this.options.verticalAlignment; var x = this.x; this.x += item.size.outerWidth; - console.log( x, y ); return { x: x, y: y }; };