From: Jan Schneider Date: Fri, 16 Apr 2010 07:29:37 +0000 (+0200) Subject: Don't overwrite 1.6 Element methods. They are not 100% BC. This way existing X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4929137b770a5c2c70dd588b97a85c15ce67d053;p=horde.git Don't overwrite 1.6 Element methods. They are not 100% BC. This way existing code keeps working and I can still use the new Layout methods explicitly. Fixes problems with RedBox and probably bug #8967 too. --- diff --git a/horde/js/prototype.js b/horde/js/prototype.js index 200a3437f..bc4e0a585 100644 --- a/horde/js/prototype.js +++ b/horde/js/prototype.js @@ -5765,19 +5765,6 @@ Object.extend(Element.ClassNames.prototype, Enumerable); return element; } - Element.addMethods({ - getLayout: getLayout, - measure: measure, - getDimensions: getDimensions, - getOffsetParent: getOffsetParent, - cumulativeOffset: cumulativeOffset, - positionedOffset: positionedOffset, - cumulativeScrollOffset: cumulativeScrollOffset, - viewportOffset: viewportOffset, - absolutize: absolutize, - relativize: relativize - }); - function isBody(element) { return element.nodeName.toUpperCase() === 'BODY'; }