]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on eleme...
authorScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2009 02:33:21 +0000 (02:33 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 5 Feb 2009 02:33:21 +0000 (02:33 +0000)
ui/ui.core.js

index 12ee73737bd23a57aeb57c8afa25f9511981a95c..ddeb7d5e279596daf8c6e775eb4c22b08f8feae9 100644 (file)
@@ -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)