Browse Source

Move props saving into init method

pull/14/head
David DeSandro 15 years ago
parent
commit
9ae810577a
  1. 11
      src/jquery.molequul.js

11
src/jquery.molequul.js

@ -390,19 +390,17 @@
callback = callback || function(){}; callback = callback || function(){};
callback.call( $elems ); 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; return this;
}, },
resize : function() { resize : function() {
var props = this.data('molequul'); var props = this.data('molequul');
return this.molequul( props.opts.layoutMode + 'Resize', props ); return this.molequul( props.opts.layoutMode + 'Resize', props );
}, },
reLayout : function( props ) { reLayout : function( props ) {
props = props || this.data('molequul'); props = props || this.data('molequul');
props.initialized = true; props.initialized = true;
@ -527,6 +525,11 @@
$(window).unbind('smartresize.molequul'); $(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 );
}); });
}, },

Loading…
Cancel
Save