aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-07-04 03:39:19 +0000
committerScott González <scott.gonzalez@gmail.com>2009-07-04 03:39:19 +0000
commit44ec979713c1bf7aff7284127e451ee1b88fb680 (patch)
tree6f9a6951d7f9f32199a419d7f79c7c6f37715024 /ui/ui.core.js
parentb6bdbb421177660c9f36cfbdb66430406f615427 (diff)
downloadjquery-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.js1
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