Repository: flex-asjs Updated Branches: refs/heads/develop f0be94029 -> 0272dbdb2
Moved code to turn ordinary button into jQuery button. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0272dbdb Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0272dbdb Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0272dbdb Branch: refs/heads/develop Commit: 0272dbdb21cdfba214946dddef95138b0d567156 Parents: f0be940 Author: Peter Ent <[email protected]> Authored: Wed Jan 14 15:08:44 2015 -0500 Committer: Peter Ent <[email protected]> Committed: Wed Jan 14 15:08:44 2015 -0500 ---------------------------------------------------------------------- .../js/FlexJS/src/org/apache/flex/jquery/TextButton.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0272dbdb/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js index ab2f468..fbc505b 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js @@ -36,7 +36,6 @@ org.apache.flex.jquery.TextButton.prototype.createElement = function() { this.element = document.createElement('button'); this.element.setAttribute('type', 'button'); - $(this.element).button(); this.positioner = this.element; this.element.flexjs_wrapper = this; @@ -45,6 +44,16 @@ org.apache.flex.jquery.TextButton.prototype.createElement = /** + * @override + */ +org.apache.flex.jquery.TextButton.prototype.addedToParent = + function() { + org.apache.flex.jquery.TextButton.base(this, 'addedToParent'); + $(this.element).button(); +}; + + +/** * @expose * @return {string} The text getter. */
