From c0ab71056b936627e8a7821f03c044aec6280a40 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 31 Jul 2013 15:56:04 -0400 Subject: Widget Factory: Make $.widget return the constructor. Fixes #9467 - Widget factory: Return the constructor from $.widget(). --- ui/jquery.ui.widget.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 93daaf1ca..885e2019f 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -134,6 +134,8 @@ $.widget = function( name, base, prototype ) { } $.widget.bridge( name, constructor ); + + return constructor; }; $.widget.extend = function( target ) { -- cgit v1.2.3