From 57f0188239843afdd0932fbf9186263ba4cab6da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 5 Feb 2009 02:33:21 +0000 Subject: [PATCH] Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on elements that use $.ui.mouse (event.originalEvent isn't defined). --- ui/ui.core.js | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.5