Don't overwrite 1.6 Element methods. They are not 100% BC. This way existing
authorJan Schneider <jan@horde.org>
Fri, 16 Apr 2010 07:29:37 +0000 (09:29 +0200)
committerJan Schneider <jan@horde.org>
Fri, 16 Apr 2010 07:29:37 +0000 (09:29 +0200)
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

index 200a343..bc4e0a5 100644 (file)
@@ -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';
   }