diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-05 02:33:21 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-05 02:33:21 +0000 |
commit | 57f0188239843afdd0932fbf9186263ba4cab6da (patch) | |
tree | 2b5e6dfd5701982c04d2b9382e71c661c205757e /ui/ui.core.js | |
parent | 27a7442a37e982c0bda7e11a3115eb6aba6ed930 (diff) | |
download | jquery-ui-57f0188239843afdd0932fbf9186263ba4cab6da.tar.gz jquery-ui-57f0188239843afdd0932fbf9186263ba4cab6da.zip |
Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on elements that use $.ui.mouse (event.originalEvent isn't defined).
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 12ee73737..ddeb7d5e2 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -423,6 +423,8 @@ $.ui.mouse = { _mouseDown: function(event) { // don't let more than one widget handle mouseStart + // TODO: figure out why we have to use originalEvent + event.originalEvent = event.originalEvent || {}; if (event.originalEvent.mouseHandled) { return; } // we may have missed mouseup (out of window) |