flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [04/31] git commit: [flex-asjs] [refs/heads/develop] - fix logic
Date Tue, 09 Dec 2014 05:16:51 GMT
fix logic


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

Branch: refs/heads/develop
Commit: f6904033e208786967fd4bd5f3a1180326e250e1
Parents: 840685e
Author: Alex Harui <aharui@apache.org>
Authored: Fri Nov 21 16:45:47 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 8 20:47:40 2014 -0800

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f6904033/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 27af8d3..9639afe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -85,14 +85,14 @@ org.apache.flex.html.ToggleTextButton.prototype.set_selected =
   if (this.selected_ != value) {
     this.selected_ = value;
 
-    var className = this.strand.className;
+    var className = this.className;
     if (value) {
       if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
-        this.strand.className = className.substring(0, className.length - this.SELECTED.length);
+        this.set_className(className.substring(0, className.length - this.SELECTED.length));
     }
     else {
       if (className.indexOf(this.SELECTED) == -1)
-        this.strand.className += this.SELECTED;
+        this.set_className(className + this.SELECTED);
     }
 
   }


Mime
View raw message