summaryrefslogtreecommitdiff
path: root/lib/dijit/form/_RadioButtonMixin.js
diff options
context:
space:
mode:
authorAnders Kaseorg <[email protected]>2017-01-20 12:29:59 -0500
committerAnders Kaseorg <[email protected]>2017-01-21 13:22:14 -0500
commit6887a0f57307820b097b51aee952c555bcf69024 (patch)
treeff041c03ac0251468eb4308927052f8bd6071ca3 /lib/dijit/form/_RadioButtonMixin.js
parent9f539be3c2c93ce358b10ca396e922b3b99b56ea (diff)
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
The itemNode and expandoNode elements have changed from img to span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our tree icons inside them rather than replacing them. Signed-off-by: Anders Kaseorg <[email protected]>
Diffstat (limited to 'lib/dijit/form/_RadioButtonMixin.js')
-rw-r--r--lib/dijit/form/_RadioButtonMixin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dijit/form/_RadioButtonMixin.js b/lib/dijit/form/_RadioButtonMixin.js
index 2ad5e12c9..bea8196ac 100644
--- a/lib/dijit/form/_RadioButtonMixin.js
+++ b/lib/dijit/form/_RadioButtonMixin.js
@@ -1,2 +1,2 @@
//>>built
-define("dijit/form/_RadioButtonMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/_base/event","dojo/_base/lang","dojo/query","../registry"],function(_1,_2,_3,_4,_5,_6,_7){return _2("dijit.form._RadioButtonMixin",null,{type:"radio",_getRelatedWidgets:function(){var _8=[];_6("input[type=radio]",this.focusNode.form||this.ownerDocument).forEach(_5.hitch(this,function(_9){if(_9.name==this.name&&_9.form==this.focusNode.form){var _a=_7.getEnclosingWidget(_9);if(_a){_8.push(_a);}}}));return _8;},_setCheckedAttr:function(_b){this.inherited(arguments);if(!this._created){return;}if(_b){_1.forEach(this._getRelatedWidgets(),_5.hitch(this,function(_c){if(_c!=this&&_c.checked){_c.set("checked",false);}}));}},_getSubmitValue:function(_d){return _d===null?"on":_d;},_onClick:function(e){if(this.checked||this.disabled){_4.stop(e);return false;}if(this.readOnly){_4.stop(e);_1.forEach(this._getRelatedWidgets(),_5.hitch(this,function(_e){_3.set(this.focusNode||this.domNode,"checked",_e.checked);}));return false;}return this.inherited(arguments);}});}); \ No newline at end of file
+define("dijit/form/_RadioButtonMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/_base/lang","dojo/query!css2","../registry"],function(_1,_2,_3,_4,_5,_6){return _2("dijit.form._RadioButtonMixin",null,{type:"radio",_getRelatedWidgets:function(){var _7=[];_5("input[type=radio]",this.focusNode.form||this.ownerDocument).forEach(_4.hitch(this,function(_8){if(_8.name==this.name&&_8.form==this.focusNode.form){var _9=_6.getEnclosingWidget(_8);if(_9){_7.push(_9);}}}));return _7;},_setCheckedAttr:function(_a){this.inherited(arguments);if(!this._created){return;}if(_a){_1.forEach(this._getRelatedWidgets(),_4.hitch(this,function(_b){if(_b!=this&&_b.checked){_b.set("checked",false);}}));}},_getSubmitValue:function(_c){return _c==null?"on":_c;},_onClick:function(e){if(this.checked||this.disabled){e.stopPropagation();e.preventDefault();return false;}if(this.readOnly){e.stopPropagation();e.preventDefault();_1.forEach(this._getRelatedWidgets(),_4.hitch(this,function(_d){_3.set(this.focusNode||this.domNode,"checked",_d.checked);}));return false;}var _e=false;var _f;_1.some(this._getRelatedWidgets(),function(_10){if(_10.checked){_f=_10;return true;}return false;});this.checked=true;_f&&(_f.checked=false);if(this.onClick(e)===false||e.defaultPrevented){_e=true;}this.checked=false;_f&&(_f.checked=true);if(_e){e.preventDefault();}else{this.set("checked",true);}return !_e;}});}); \ No newline at end of file