Browse Source

some comments; remove console.log

pull/563/head
David DeSandro 12 years ago
parent
commit
820b48f9f2
  1. 9
      isotope.js
  2. 1
      layout-modes/horizontal.js

9
isotope.js

@ -81,20 +81,17 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, layoutMode
}; };
Isotope.prototype.layout = function( opts ) { Isotope.prototype.layout = function( opts ) {
// set any options pass
this.option( opts ); this.option( opts );
// don't animate first layout // don't animate first layout
var isInstant = this._isInitInstant = this.options.isLayoutInstant !== undefined ? var isInstant = this._isInitInstant = this.options.isLayoutInstant !== undefined ?
this.options.isLayoutInstant : !this._isLayoutInited; this.options.isLayoutInstant : !this._isLayoutInited;
//
this.filteredItems = this._filter( this.items ); this.filteredItems = this._filter( this.items );
this._sort(); this._sort();
// Outlayer.prototype.layout.call( this ); // layout flow
this._resetLayout(); this._resetLayout();
this._manageStamps(); this._manageStamps();
// var isInstant = this.options.isLayoutInstant !== undefined ?
// this.options.isLayoutInstant : !this._isLayoutInited;
this.layoutItems( this.filteredItems, isInstant ); this.layoutItems( this.filteredItems, isInstant );
// flag for initalized // flag for initalized

1
layout-modes/horizontal.js

@ -18,7 +18,6 @@ function horizontalDefinition( layoutMode ) {
this.options.verticalAlignment; this.options.verticalAlignment;
var x = this.x; var x = this.x;
this.x += item.size.outerWidth; this.x += item.size.outerWidth;
console.log( x, y );
return { x: x, y: y }; return { x: x, y: y };
}; };

Loading…
Cancel
Save