]> source.dussan.org Git - jquery-ui.git/commitdiff
removed x, y as they are not browser event options. Use clientX and clientY
authorRichard Worth <rdworth@gmail.com>
Thu, 5 Jun 2008 12:16:42 +0000 (12:16 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 5 Jun 2008 12:16:42 +0000 (12:16 +0000)
ui/tests/jquery.simulate.js

index 4102d583fab72b6166cc9d1e55dd3b73b78589e4..e3803a3cb908ac2e3b6beef8b8d7a8042a40af97 100644 (file)
@@ -49,7 +49,7 @@ $.extend($.simulate.prototype, {
                var evt;\r
                var e = $.extend({\r
                        bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0,\r
-                       screenX: 0, screenY: 0, clientX: options.x || 0, clientY: options.y || 0,\r
+                       screenX: 0, screenY: 0, clientX: 0, clientY: 0,\r
                        ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,\r
                        button: 0, relatedTarget: undefined\r
                }, options);\r
@@ -118,7 +118,7 @@ $.extend($.simulate.prototype, {
                        options = this.options, x = center.x, y = center.y, \r
                        dx = options.dx || 0, dy = options.dy || 0, target = this.target;\r
 \r
-               var coord = { x: x, y: y, complete: null }, evt;\r
+               var coord = { clientX: x, clientX: y, complete: null }, evt;\r
                this.simulateEvent(target, "mouseover", coord);\r
                this.simulateEvent(target, "mousedown", coord);\r
                \r