aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-05-20 11:30:49 -0400
committerScott González <scott.gonzalez@gmail.com>2013-05-20 11:30:49 -0400
commit2eb89f07341a557084fa3363fe22afe62530654d (patch)
treea6bc0b09a6c98d026d53a84f86203d77b72b0349 /ui
parent9726cd72b64e9e9735cfdb5564ebef64a6dab0aa (diff)
downloadjquery-ui-2eb89f07341a557084fa3363fe22afe62530654d.tar.gz
jquery-ui-2eb89f07341a557084fa3363fe22afe62530654d.zip
Widget: Properly set widgetEventPrefix when redefining a widget. Fixes #9316 - Widget: widgetEventPrefix is empty when widget is (occasionally) loaded twice.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.widget.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 741ac74d7..9fc0136c4 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -106,7 +106,7 @@ $.widget = function( name, base, prototype ) {
// TODO: remove support for widgetEventPrefix
// always use the name + a colon as the prefix, e.g., draggable:start
// don't prefix for widgets that aren't DOM-based
- widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name
+ widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
}, proxiedPrototype, {
constructor: constructor,
namespace: namespace,