Skip to content
Permalink
Browse files

Mouse: Fixed #4061: Prevent errors when manually triggering mousedown…

… events on elements that use $.ui.mouse (event.originalEvent isn't defined).
  • Loading branch information
scottgonzalez committed Feb 5, 2009
1 parent 27a7442 commit 57f0188239843afdd0932fbf9186263ba4cab6da
Showing with 2 additions and 0 deletions.
  1. +2 −0 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)

0 comments on commit 57f0188

Please sign in to comment.
You can’t perform that action at this time.