diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-08-23 15:35:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-08-23 15:35:49 -0400 |
commit | 1cca969c3cbf83f17f947a022a3b315e26add89f (patch) | |
tree | 8650885a59eab12e99eb9df78740376c4851844f /ui/jquery.ui.widget.js | |
parent | df786f80ebffc0882af7f33a77e0900f46c6ab15 (diff) | |
download | jquery-ui-1cca969c3cbf83f17f947a022a3b315e26add89f.tar.gz jquery-ui-1cca969c3cbf83f17f947a022a3b315e26add89f.zip |
Widget: Refactored code for re-initialization to reduce file size.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index e21287ae0..ead4af12b 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -99,10 +99,7 @@ $.widget.bridge = function( name, object ) { this.each(function() { var instance = $.data( this, name ); if ( instance ) { - if ( options ) { - instance.option( options ); - } - instance._init(); + instance.option( options || {} )._init(); } else { $.data( this, name, new object( options, this ) ); } |