Updated Branches: refs/heads/develop 17947a07f -> 801862b9c
add a Button.js so class heirarchy mirrors AS so CSS lookups work. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/82197432 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/82197432 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/82197432 Branch: refs/heads/develop Commit: 82197432fb99c4b0eaa14fdf8c62e398d87d6117 Parents: 17947a0 Author: Alex Harui <[email protected]> Authored: Sun Oct 20 20:40:52 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Oct 20 20:40:52 2013 -0700 ---------------------------------------------------------------------- .../apache/flex/html/staticControls/Button.js | 48 ++++++++++++++++++++ .../flex/html/staticControls/TextButton.js | 18 +------- 2 files changed, 50 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/82197432/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js new file mode 100644 index 0000000..43527f5 --- /dev/null +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js @@ -0,0 +1,48 @@ +/** + * Licensed under the Apache License, Version 2.0 (the 'License'); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +goog.provide('org.apache.flex.html.staticControls.Button'); + +goog.require('org.apache.flex.core.UIBase'); + + + +/** + * @constructor + * @extends {org.apache.flex.core.UIBase} + */ +org.apache.flex.html.staticControls.Button = function() { + goog.base(this); +}; +goog.inherits(org.apache.flex.html.staticControls.Button, + org.apache.flex.core.UIBase); + + +/** + * @override + * @this {org.apache.flex.html.staticControls.Button} + */ +org.apache.flex.html.staticControls.Button.prototype.createElement = + function() { + this.element = document.createElement('button'); + this.element.setAttribute('type', 'button'); + + this.positioner = this.element; + this.element.flexjs_wrapper = this; + + var impl = org.apache.flex.core.ValuesManager.valuesImpl. + getValue(this, "iStatesImpl"); + +}; + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/82197432/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextButton.js index c54d5f4..54775c6 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextButton.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextButton.js @@ -14,7 +14,7 @@ goog.provide('org.apache.flex.html.staticControls.TextButton'); -goog.require('org.apache.flex.core.UIBase'); +goog.require('org.apache.flex.html.staticControls.Button'); @@ -26,21 +26,7 @@ org.apache.flex.html.staticControls.TextButton = function() { goog.base(this); }; goog.inherits(org.apache.flex.html.staticControls.TextButton, - org.apache.flex.core.UIBase); - - -/** - * @override - * @this {org.apache.flex.html.staticControls.TextButton} - */ -org.apache.flex.html.staticControls.TextButton.prototype.createElement = - function() { - this.element = document.createElement('button'); - this.element.setAttribute('type', 'button'); - - this.positioner = this.element; - this.element.flexjs_wrapper = this; -}; + org.apache.flex.html.staticControls.Button); /**
