You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/01/26 20:50:01 UTC

git commit: [flex-asjs] [refs/heads/develop] - ToggleButton overrides set_id to set the id on its children.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 5f6234ef4 -> 378fe70b5


ToggleButton overrides set_id to set the id on its children.


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

Branch: refs/heads/develop
Commit: 378fe70b50ea51da8b989c964c1b6aaed2eabfcf
Parents: 5f6234e
Author: Peter Ent <pe...@apache.org>
Authored: Mon Jan 26 14:49:58 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Jan 26 14:49:58 2015 -0500

----------------------------------------------------------------------
 .../FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/378fe70b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index 5cad5a7..832d483 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -93,6 +93,16 @@ org.apache.flex.jquery.ToggleTextButton.prototype.addedToParent =
 
 
 /**
+ * @override
+ */
+org.apache.flex.jquery.ToggleTextButton.prototype.set_id = function(value) {
+  org.apache.flex.jquery.ToggleTextButton.base(this, 'set_id', value);
+  this.labelFor.id = value;
+  this.labelFor.htmlFor = value;
+};
+
+
+/**
  * @expose
  * @return {string} The text getter.
  */