From c603fc5d42eb8228ae0991806438dd2ebd1067bf Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 13 Aug 2007 15:15:01 +0000 Subject: [PATCH] prototype: Make sure the WebKit redefinition of Element#cumulativeOffset uses Element._returnOffset. Closes #9245. --- CHANGELOG | 2 ++ src/dom.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 12904e1..f628d2a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Make sure the WebKit redefinition of Element#cumulativeOffset uses Element._returnOffset. Closes #9245. [mdaines] + * Make sure Element#observe and Element#stopObserving are always chainable. [sam] * Event.fire/Element#fire now returns the newly-fired event instead of the event's target element. [sam] diff --git a/src/dom.js b/src/dom.js index 937b636..9748c76 100644 --- a/src/dom.js +++ b/src/dom.js @@ -909,7 +909,7 @@ else if (Prototype.Browser.WebKit) { element = element.offsetParent; } while (element); - return [valueL, valueT]; + return Element._returnOffset(valueL, valueT); }; }