From 9ae810577aeb96a59806a5b29f9e0dd82d1c2da5 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Fri, 22 Oct 2010 07:46:46 -0400 Subject: [PATCH] Move props saving into init method --- src/jquery.molequul.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/jquery.molequul.js b/src/jquery.molequul.js index b71067c..96247f3 100755 --- a/src/jquery.molequul.js +++ b/src/jquery.molequul.js @@ -390,19 +390,17 @@ callback = callback || function(){}; callback.call( $elems ); - // set all data so we can retrieve it for appended appendedContent - // or anyone else's crazy jquery fun - this.data( 'molequul', props ); - return this; }, + resize : function() { var props = this.data('molequul'); return this.molequul( props.opts.layoutMode + 'Resize', props ); }, + reLayout : function( props ) { props = props || this.data('molequul'); props.initialized = true; @@ -527,6 +525,11 @@ $(window).unbind('smartresize.molequul'); } + + // set all data so we can retrieve it for appended appendedContent + // or anyone else's crazy jquery fun + $this.data( 'molequul', props ); + }); },