aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-05 12:16:42 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-05 12:16:42 +0000
commit1d7197f719ab7e17bef5737ca0148db7b7cc1ca6 (patch)
tree1b6f1527994a4437d05c6fceddad941f7acb32d1
parentc8207f4b30344b384376864a2eaa763706783a94 (diff)
downloadjquery-ui-1d7197f719ab7e17bef5737ca0148db7b7cc1ca6.tar.gz
jquery-ui-1d7197f719ab7e17bef5737ca0148db7b7cc1ca6.zip
removed x, y as they are not browser event options. Use clientX and clientY
-rw-r--r--ui/tests/jquery.simulate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tests/jquery.simulate.js b/ui/tests/jquery.simulate.js
index 4102d583f..e3803a3cb 100644
--- a/ui/tests/jquery.simulate.js
+++ b/ui/tests/jquery.simulate.js
@@ -49,7 +49,7 @@ $.extend($.simulate.prototype, {
var evt;
var e = $.extend({
bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0,
- screenX: 0, screenY: 0, clientX: options.x || 0, clientY: options.y || 0,
+ screenX: 0, screenY: 0, clientX: 0, clientY: 0,
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
button: 0, relatedTarget: undefined
}, options);
@@ -118,7 +118,7 @@ $.extend($.simulate.prototype, {
options = this.options, x = center.x, y = center.y,
dx = options.dx || 0, dy = options.dy || 0, target = this.target;
- var coord = { x: x, y: y, complete: null }, evt;
+ var coord = { clientX: x, clientX: y, complete: null }, evt;
this.simulateEvent(target, "mouseover", coord);
this.simulateEvent(target, "mousedown", coord);