From 4767bcf3d19d8d4c0ebba9b3aafd530b3bb9c0b4 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 25 Aug 2013 19:38:32 -0400 Subject: [PATCH] set options in layout(); --- isotope.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/isotope.js b/isotope.js index c1751db..2141efd 100644 --- a/isotope.js +++ b/isotope.js @@ -88,7 +88,9 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, layoutMode return mode; }; - Isotope.prototype.layout = function() { + Isotope.prototype.layout = function( opts ) { + this.option( opts ); + // don't animate first layout var isInstant = this._isInitInstant = this.options.isLayoutInstant !== undefined ? this.options.isLayoutInstant : !this._isLayoutInited;