Updated Branches: refs/heads/develop 55cd7ee06 -> 37c681b78
PasswordInputBead. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/37c681b7 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/37c681b7 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/37c681b7 Branch: refs/heads/develop Commit: 37c681b78ab9ef9d2339d910b0cb1aabeb337b68 Parents: 55cd7ee Author: Peter Ent <p...@apache.org> Authored: Fri Aug 9 11:49:32 2013 -0400 Committer: Peter Ent <p...@apache.org> Committed: Fri Aug 9 11:49:32 2013 -0400 ---------------------------------------------------------------------- .../staticControls/beads/PasswordInputBead.js | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37c681b7/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/PasswordInputBead.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/PasswordInputBead.js new file mode 100644 index 0000000..f29acb8 --- /dev/null +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/PasswordInputBead.js @@ -0,0 +1,42 @@ +/** + * 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.beads.PasswordInputBead'); + + + +/** + * @constructor + */ +org.apache.flex.html.staticControls.beads.PasswordInputBead = function() { + + /** + * @private + * @type {Object} + */ + this.promptElement; +}; + +/** + * @expose + * @this {org.apache.flex.html.staticControls.beads.PasswordInputBead} + * @param {Object} value The new host. + */ +org.apache.flex.html.staticControls.beads.PasswordInputBead.prototype.set_strand = + function(value) { + if (this.strand_ !== value) { + this.strand_ = value; + value.element.type = 'password'; + } +};