diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-07-11 00:30:46 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-07-11 00:30:46 +0000 |
commit | 1a0345365446ef973da55cbeff7f5e8bd0b795cf (patch) | |
tree | f065bbda0f2b548fe661739c5994b67023c83c9a /ui/ui.core.js | |
parent | 2ebc73e2b74556466bb36e2f37abf6488bf5f9bc (diff) | |
download | jquery-ui-1a0345365446ef973da55cbeff7f5e8bd0b795cf.tar.gz jquery-ui-1a0345365446ef973da55cbeff7f5e8bd0b795cf.zip |
Widget factory: Force event types to be lowercase. Fixes #4668 - All event types should be lowercase even if the corresponding callback is camelcase.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 7 |
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 |