diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-02-03 16:37:17 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-02-03 16:37:17 -0500 |
commit | ee88a562433e75a0dd500ed7c71376d279eaacdf (patch) | |
tree | add7d9669cf4d41a04005b04c312749b867d5b38 /ui/jquery.ui.widget.js | |
parent | ed4903370090c5e81a5be7a9e23f351fc1b062a6 (diff) | |
download | jquery-ui-ee88a562433e75a0dd500ed7c71376d279eaacdf.tar.gz jquery-ui-ee88a562433e75a0dd500ed7c71376d279eaacdf.zip |
Widget: Added ability to use $.widget() to create extensions. Fixes #6937 - Widget: Allow redefining a widget to create extensions.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 1ec934469..6b84f7a9c 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -36,7 +36,7 @@ $.widget = function( name, base, prototype ) { }; $[ namespace ] = $[ namespace ] || {}; - $[ namespace ][ name ] = function( options, element ) { + $[ namespace ][ name ] = $[ namespace ][ name ] || function( options, element ) { // allow instantiation without "new" keyword if ( !this._createWidget ) { return new $[ namespace ][ name ]( options, element ); |