lint

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/184b7e9c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/184b7e9c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/184b7e9c

Branch: refs/heads/develop
Commit: 184b7e9cf90845324ad3c2e916b5a388286d3041
Parents: 3474830
Author: Alex Harui <[email protected]>
Authored: Wed Jan 7 20:39:23 2015 -0800
Committer: Alex Harui <[email protected]>
Committed: Fri Jan 9 08:09:47 2015 -0800

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/184b7e9c/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js 
b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index 37265bc..3916d4e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -448,7 +448,7 @@ org.apache.flex.core.UIBase.prototype.get_width = 
function() {
   pixels = parseFloat(strpixels);
   if (isNaN(pixels)) {
     pixels = this.positioner.offsetWidth;
-    if (pixels == 0 && this.positioner.scrollWidth != 0) {
+    if (pixels === 0 && this.positioner.scrollWidth !== 0) {
       // invisible child elements cause offsetWidth to be 0.
       pixels = this.positioner.scrollWidth;
     }
@@ -518,7 +518,7 @@ org.apache.flex.core.UIBase.prototype.get_height = 
function() {
   pixels = parseFloat(strpixels);
   if (isNaN(pixels)) {
     pixels = this.positioner.offsetHeight;
-    if (pixels == 0 && this.positioner.scrollHeight != 0) {
+    if (pixels === 0 && this.positioner.scrollHeight !== 0) {
       // invisible child elements cause offsetHeight to be 0.
       pixels = this.positioner.scrollHeight;
     }

Reply via email to