aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r--ui/ui.core.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 313074032..0e8be9abe 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -346,12 +346,11 @@ $.widget.prototype = {
},
_trigger: function(type, event, data) {
- var callback = this.options[type],
- eventName = (type == this.widgetEventPrefix
- ? type : this.widgetEventPrefix + type);
+ var callback = this.options[type];
event = $.Event(event);
- event.type = eventName;
+ event.type = (type == this.widgetEventPrefix
+ ? type : this.widgetEventPrefix + type).toLowerCase();
data = data || {};
// copy original event properties over to the new event