bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0,\r
screenX: 0, screenY: 0, clientX: options.x || 0, clientY: options.y || 0,\r
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,\r
- button: 0, relatedTarget: null\r
+ button: 0, relatedTarget: undefined\r
}, options);\r
\r
var relatedTarget = $(e.relatedTarget)[0];\r
evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail,\r
e.screenX, e.screenY, e.clientX, e.clientY,\r
e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\r
- e.button, relatedTarget);\r
+ e.button, e.relatedTarget || document.body.parentNode);\r
} else if (document.createEventObject) {\r
evt = document.createEventObject();\r
$.extend(evt, e);\r