//>>built
define("dojox/mobile/Button","dojo/_base/array dojo/_base/declare dojo/_base/window dojo/dom dojo/dom-class dojo/dom-construct dojo/touch dojo/on ./common dijit/_WidgetBase dijit/form/_ButtonMixin dijit/form/_FormWidgetMixin dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/Button".split(" "),function(m,g,h,n,p,q,e,k,r,d,t,u,l,v){d=g(l("dojo-bidi")?"dojox.mobile.NonBidiButton":"dojox.mobile.Button",[d,u,t],{baseClass:"mblButton",_setTypeAttr:null,isFocusable:function(){return!1},buildRendering:function(){if(!this.srcNodeRef)this.srcNodeRef=
q.create("button",{type:this.type});else if(this._cv){var a=this.srcNodeRef.firstChild;a&&3===a.nodeType&&(a.nodeValue=this._cv(a.nodeValue))}this.inherited(arguments);this.focusNode=this.domNode},postCreate:function(){this.inherited(arguments);this.domNode.dojoClick="useTarget";var a=this;this.on(e.press,function(f){f.preventDefault();if(!a.domNode.disabled){a._press(!0);var b=!1;a._moveh=k(h.doc,e.move,function(c){b||(c.preventDefault(),b=!0);a._press(n.isDescendant(c.target,a.domNode))});a._endh=
k(h.doc,e.release,function(c){a._press(!1);a._moveh.remove();a._endh.remove()})}});r.setSelectable(this.focusNode,!1);this.connect(this.domNode,"onclick","_onClick")},_press:function(a){if(a!=this._pressed){this._pressed=a;var f=this.focusNode||this.domNode,b=(this.baseClass+" "+this["class"]).split(" ");b=m.map(b,function(c){return c+"Selected"});p.toggle(f,b,a)}},_setLabelAttr:function(a){this.inherited(arguments,[this._cv?this._cv(a):a])}});return l("dojo-bidi")?g("dojox.mobile.Button",[d,v]):
d});