aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-24 10:13:14 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-24 10:13:51 -0400
commit848ab485839b6dd26f2b6c6680141d95cab32ceb (patch)
treeffe5a909df9a53d21378e839bb567ed2ad6b5429 /ui/jquery.ui.widget.js
parentba752cf7eda841ded93688ab3167b5515fa1660c (diff)
downloadjquery-ui-848ab485839b6dd26f2b6c6680141d95cab32ceb.tar.gz
jquery-ui-848ab485839b6dd26f2b6c6680141d95cab32ceb.zip
Widget: Use existing widgetEventPrefix when extending. Fixes #8724 - widgetEventPrefix is lost when extending existing widget.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-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 ccbe0cac5..eea12c471 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -101,7 +101,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: name
+ widgetEventPrefix: basePrototype.widgetEventPrefix || name
}, prototype, {
constructor: constructor,
namespace: namespace,