aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2013-07-31 15:56:04 -0400
committerScott González <scott.gonzalez@gmail.com>2013-07-31 16:52:21 -0400
commitc0ab71056b936627e8a7821f03c044aec6280a40 (patch)
treed4a5940aad9675f737b7eeb52b7c63b5ab39f38b /ui/jquery.ui.widget.js
parentc4c90f385a77ab106a47cf56e53bcd352aa9edce (diff)
downloadjquery-ui-c0ab71056b936627e8a7821f03c044aec6280a40.tar.gz
jquery-ui-c0ab71056b936627e8a7821f03c044aec6280a40.zip
Widget Factory: Make $.widget return the constructor. Fixes #9467 - Widget factory: Return the constructor from $.widget().
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 2 insertions, 0 deletions
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 ) {