From 4929137b770a5c2c70dd588b97a85c15ce67d053 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 16 Apr 2010 09:29:37 +0200 Subject: [PATCH] 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. --- horde/js/prototype.js | 13 ------------- 1 file changed, 13 deletions(-) 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'; } -- 2.11.0