From 8ef3eaf79f59e0f65d5c24de54250696e34d629d Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Thu, 24 Feb 2011 21:33:37 -0500 Subject: [PATCH] src : within layout - remove layoutMethod, and extending animOpts --- jquery.isotope.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 9b562fa..a6ae928 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -597,8 +597,7 @@ // accepts atoms-to-be-laid-out to start with layout : function( $elems, callback ) { - var layoutMode = this.options.layoutMode, - layoutMethod = '_' + layoutMode; + var layoutMode = this.options.layoutMode; // layout logic this[ '_' + layoutMode + 'Layout' ]( $elems ); @@ -616,14 +615,10 @@ 'css' : this.applyStyleFnName, animOpts = this.options.animationOptions; - // process styleQueue - $.each( this.styleQueue, function( i, obj ){ - // have to extend animation to play nice with jQuery - obj.$el[ styleFn ]( obj.style, $.extend( {}, animOpts ) ); + $.each( this.styleQueue, function( i, obj ) { + obj.$el[ styleFn ]( obj.style, animOpts ); }); - - // clear out queue for next time this.styleQueue = [];