diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/widget.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/widget.js b/ui/widget.js index 2bac3d8d2..ae72c709b 100644 --- a/ui/widget.js +++ b/ui/widget.js @@ -62,6 +62,10 @@ $.widget = function( name, base, prototype ) { base = $.Widget; } + if ( $.isArray( prototype ) ) { + prototype = $.extend.apply( null, [ {} ].concat( prototype ) ); + } + // create selector for plugin $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { return !!$.data( elem, fullName ); |