Skip to content
Permalink
Browse files

Widget: Refactored code for re-initialization to reduce file size.

  • Loading branch information...
scottgonzalez committed Aug 23, 2010
1 parent df786f8 commit 1cca969c3cbf83f17f947a022a3b315e26add89f
Showing with 1 addition and 4 deletions.
  1. +1 −4 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 ) );
}

0 comments on commit 1cca969

Please sign in to comment.
You can’t perform that action at this time.