diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-07-04 03:39:19 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-07-04 03:39:19 +0000 |
commit | 44ec979713c1bf7aff7284127e451ee1b88fb680 (patch) | |
tree | 6f9a6951d7f9f32199a419d7f79c7c6f37715024 /ui/ui.core.js | |
parent | b6bdbb421177660c9f36cfbdb66430406f615427 (diff) | |
download | jquery-ui-44ec979713c1bf7aff7284127e451ee1b88fb680.tar.gz jquery-ui-44ec979713c1bf7aff7284127e451ee1b88fb680.zip |
Widget factory: Convert falsy data values to an empty hash in _trigger. Fixes #4650: ui hash not always provided in events/callbacks.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index eb0420c62..313074032 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -352,6 +352,7 @@ $.widget.prototype = { event = $.Event(event); event.type = eventName; + data = data || {}; // copy original event properties over to the new event // this would happen if we could call $.event.fix instead of $.Event |