Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix problem checking for Coordinates in getElementPosition

  • Loading branch information...
commit 4a885827e77dfbab827e94cc65ab9573d0d891aa 1 parent 0bc28ec
@wieslander authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  MochiKit/Style.js
View
2  MochiKit/Style.js
@@ -200,7 +200,7 @@ MochiKit.Base.update(MochiKit.Style, {
var de = d.documentElement;
var b = d.body;
- if (!elem.parentNode && elem.x && elem.y) {
+ if (isCoordinates(elem)) {
/* it's just a MochiKit.Style.Coordinates object */
c.x += elem.x || 0;
c.y += elem.y || 0;
Please sign in to comment.
Something went wrong with that request. Please try again.