r1997 - trunk/ui
r1997 - trunk/ui
Author: scott.gonzalez
Date: Wed Feb 4 18:33:21 2009
New Revision: 1997
Modified:
trunk/ui/ui.core.js
Log:
Mouse: Fixed #4061: Prevent errors when manually triggering mousedown
events on elements that use $.ui.mouse (event.originalEvent isn't defined).
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js (original)
+++ trunk/ui/ui.core.js Wed Feb 4 18:33:21 2009
@@ -423,6 +423,8 @@
_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)