//>>built define("dojox/mobile/TextBox", [ "dojo/_base/declare", "dojo/dom-construct", "dijit/_WidgetBase", "dijit/form/_FormValueMixin", "dijit/form/_TextBoxMixin" ], function(declare, domConstruct, WidgetBase, FormValueMixin, TextBoxMixin){ /*===== WidgetBase = dijit._WidgetBase; FormValueMixin = dijit.form._FormValueMixin; TextBoxMixin = dijit.form._TextBoxMixin; =====*/ return declare("dojox.mobile.TextBox",[WidgetBase, FormValueMixin, TextBoxMixin],{ // summary: // A non-templated base class for textbox form inputs baseClass: "mblTextBox", // Override automatic assigning type --> node, it causes exception on IE8. // Instead, type must be specified as this.type when the node is created, as part of the original DOM _setTypeAttr: null, // Map widget attributes to DOMNode attributes. _setPlaceHolderAttr: "textbox", buildRendering: function(){ if(!this.srcNodeRef){ this.srcNodeRef = domConstruct.create("input", {"type":this.type}); } this.inherited(arguments); this.textbox = this.focusNode = this.domNode; }, postCreate: function(){ this.inherited(arguments); this.connect(this.textbox, "onfocus", "_onFocus"); this.connect(this.textbox, "onblur", "_onBlur"); } }); });