Skip to content

Commit 1cca969

Browse files
committed
Widget: Refactored code for re-initialization to reduce file size.
1 parent df786f8 commit 1cca969

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ $.widget.bridge = function( name, object ) {
9999
this.each(function() {
100100
var instance = $.data( this, name );
101101
if ( instance ) {
102-
if ( options ) {
103-
instance.option( options );
104-
}
105-
instance._init();
102+
instance.option( options || {} )._init();
106103
} else {
107104
$.data( this, name, new object( options, this ) );
108105
}

0 commit comments

Comments
 (0)