webui-aria2/js/libs/dojox/mobile/ToggleButton.js
2012-05-01 19:52:07 +08:00

9 lines
444 B
JavaScript

//>>built
define("dojox/mobile/ToggleButton",["dojo/_base/declare","dojo/dom-class","dijit/form/_ToggleButtonMixin","./Button"],function(_1,_2,_3,_4){
return _1("dojox.mobile.ToggleButton",[_4,_3],{baseClass:"mblToggleButton",_setCheckedAttr:function(){
this.inherited(arguments);
var _5=(this.baseClass+" "+this["class"]).replace(/(\S+)\s*/g,"$1Checked ").split(" ");
_2[this.checked?"add":"remove"](this.focusNode||this.domNode,_5);
}});
});