//>>built define(["dojo","dijit","dojox","dojo/require!dojo/window,dijit/_WidgetBase,dijit/focus"],function(b,e,d){b.provide("dojox.mobile.app._FormWidget");b.experimental("dojox.mobile.app._FormWidget");b.require("dojo.window");b.require("dijit._WidgetBase");b.require("dijit.focus");b.declare("dojox.mobile.app._FormWidget",e._WidgetBase,{name:"",alt:"",value:"",type:"text",disabled:!1,intermediateChanges:!1,scrollOnFocus:!1,attributeMap:b.delegate(e._WidgetBase.prototype.attributeMap,{value:"focusNode",id:"focusNode", alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?'name\x3d"'+this.name.replace(/'/g,"\x26quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this.disabled=a;b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a)},_onFocus:function(a){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)}, isFocusable:function(){return!this.disabled&&!this.readOnly&&this.focusNode&&"none"!=b.style(this.domNode,"display")},focus:function(){this.focusNode.focus()},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a