aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-09 16:48:52 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-09 16:49:03 -0500
commit9e858ba14ac0ae26780581a34565e84e0ae108ef (patch)
tree5f18296ebc8071367c3e4c6ea83e0b709cac75b3 /ui
parent254f2b3698265bdcb7daa85f8c7e2c27192cd090 (diff)
downloadjquery-ui-9e858ba14ac0ae26780581a34565e84e0ae108ef.tar.gz
jquery-ui-9e858ba14ac0ae26780581a34565e84e0ae108ef.zip
Widget: Only use the event prefix from the base if we're redefining a widget. Fixes #8805 - Widget: widgetEventPrefix is incorrect when inheriting with jQuery UI 1.9.1.
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 02f89bc98..06f25576a 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: basePrototype.widgetEventPrefix || name
+ widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name
}, prototype, {
constructor: constructor,
namespace: namespace,