Browse Source

some comments; remove console.log

pull/563/head
David DeSandro 11 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 ) {
// 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

1
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 };
};

Loading…
Cancel
Save