You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/11/25 07:59:16 UTC
[06/18] git commit: [flex-asjs] [refs/heads/develop] - fix error in
createJS CheckBox
fix error in createJS CheckBox
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1e1163f9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1e1163f9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1e1163f9
Branch: refs/heads/develop
Commit: 1e1163f9e6175d988c5e386c079286c2ecc1ff85
Parents: fdaeaae
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:32:35 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:32:35 2013 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/createjs/staticControls/CheckBox.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1e1163f9/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
index 7bb0b5d..f342f1d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
@@ -87,9 +87,9 @@ org.apache.flex.createjs.staticControls.CheckBox.prototype.createElement =
// use bind(this) to avoid loose scope
this.element.onClick = this.clickHandler.bind(this);
- p.addChild(this.element);
-
this.positioner = this.element;
+
+ return this.element;
};