Skip to content
Browse files

Fix problem checking for Coordinates in getElementPosition

  • Loading branch information...
1 parent 0bc28ec commit 4a885827e77dfbab827e94cc65ab9573d0d891aa @wieslander committed May 4, 2011
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;

0 comments on commit 4a88582

Please sign in to comment.
Something went wrong with that request. Please try again.