[qooxdoo-commit] SF.net SVN: qooxdoo:[15241] trunk/qooxdoo/framework/source/class/qx/bom/ element/O
Brought to you by:
ecker,
martinwittemann
From: <de...@us...> - 2008-08-05 19:02:26
|
Revision: 15241 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=15241&view=rev Author: derrell Date: 2008-08-05 19:02:16 +0000 (Tue, 05 Aug 2008) Log Message: ----------- Don't call static functions via a local variable reference to the function. Derrell Modified Paths: -------------- trunk/qooxdoo/framework/source/class/qx/bom/element/Overflow.js Modified: trunk/qooxdoo/framework/source/class/qx/bom/element/Overflow.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/bom/element/Overflow.js 2008-08-05 18:22:38 UTC (rev 15240) +++ trunk/qooxdoo/framework/source/class/qx/bom/element/Overflow.js 2008-08-05 19:02:16 UTC (rev 15241) @@ -45,17 +45,17 @@ } - var getStyleProperty = qx.bom.element.Style.get; + var Style = qx.bom.element.Style; var getStyleSize = function(el, propertyName) { - return parseInt(getStyleProperty(el, propertyName)) || 0; + return parseInt(Style.get(el, propertyName)) || 0; }; var getBorderRight = function(el) { return ( - getStyleProperty(el, "borderRightStyle") == "none" + Style.get(el, "borderRightStyle") == "none" ? 0 : getStyleSize(el, "borderRightWidth") ); @@ -64,7 +64,7 @@ var getBorderLeft = function(el) { return ( - getStyleProperty(el, "borderLeftStyle") == "none" + Style.get(el, "borderLeftStyle") == "none" ? 0 : getStyleSize(el, "borderLeftWidth") ); @@ -75,7 +75,7 @@ "mshtml" : function(el) { if ( - getStyleProperty(el, "overflowY") == "hidden" || + Style.get(el, "overflowY") == "hidden" || el.clientWidth == 0 ) { return getBorderRight(el); @@ -90,7 +90,7 @@ // clientWidth == 0 could mean both: unavailable or really 0 if (el.clientWidth == 0) { - var ov = getStyleProperty(el, "overflow"); + var ov = Style.get(el, "overflow"); var sbv = ( ov == "scroll" || ov == "-moz-scrollbars-vertical" ? 16 : 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |