rem: elementDimensions: function (elem) { var self = MochiKit.DOM; if (typeof(elem.w) == 'number' || typeof(elem.h) == 'number') { return new self.Dimensions(elem.w || 0, elem.h || 0); } elem = self.getElement(elem); if (!elem) { return undefined; } if (self.computedStyle(elem, 'display') != 'none') { return new self.Dimensions(elem.offsetWidth || 0, elem.offsetHeight || 0); } var s = elem.style; var originalVisibility = s.visibility; var originalPosition = s.position; s.visibility = 'hidden'; s.position = 'absolute'; s.display = ''; var originalWidth = elem.offsetWidth; var originalHeight = elem.offsetHeight; s.display = 'none'; s.position = originalPosition; s.visibility = originalVisibility; return new self.Dimensions(originalWidth, originalHeight); }, 
add: },elementDimensions:function(elem){ var self=MochiKit.DOM; if(typeof (elem.w)=="number"||typeof (elem.h)=="number"){ return new self.Dimensions(elem.w||0,elem.h||0); } elem=self.getElement(elem); if(!elem){ return undefined; } if(self.computedStyle(elem,"display")!="none"){ return new self.Dimensions(elem.offsetWidth||0,elem.offsetHeight||0); } var s=elem.style; var _305=s.visibility; var _306=s.position; s.visibility="hidden"; s.position="absolute"; s.display=""; var _307=elem.offsetWidth; var _308=elem.offsetHeight; s.display="none"; s.position=_306; s.visibility=_305; return new self.Dimensions(_307,_308); },elementPosition:function(elem,_309){ 
context:     elementDimensions: function (elem) {        var self = MochiKit.DOM;        if (typeof(elem.w) == 'number' || typeof(elem.h) == 'number') {            return new self.Dimensions(elem.w || 0, elem.h || 0);        }        elem = self.getElement(elem);        if (!elem) {            return undefined;        }        if (self.computedStyle(elem, 'display') != 'none') {            return new self.Dimensions(elem.offsetWidth || 0,                elem.offsetHeight || 0);        }        var s = elem.style;        var originalVisibility = s.visibility;        var originalPosition = s.position;        s.visibility = 'hidden';        s.position = 'absolute';        s.display = '';        var originalWidth = elem.offsetWidth;        var originalHeight = elem.offsetHeight;        s.display = 'none';        s.position = originalPosition;        s.visibility = originalVisibility;        return new self.Dimensions(originalWidth, originalHeight);    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js