From: Scott González Date: Thu, 5 Feb 2009 02:33:21 +0000 (+0000) Subject: Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on eleme... X-Git-Tag: 1.6~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57f0188239843afdd0932fbf9186263ba4cab6da;p=jquery-ui.git Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on elements that use $.ui.mouse (event.originalEvent isn't defined). --- 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)