RadioButton Still Shares Require With CheckBox
"Previously multiple dijit widgets were included in the same file/module, so for example you would do dojo.require("dijit.form.Button") to use dijit.form.ComboButton?. That's still supported for backwards-compatibility reasons, it will be removed in 2.0, and starting now you should have a separate dojo.require() call for each widget you are using."
RadioButton? seems to have gotten overlooked when widgets were being separated out into their own files. Right now one still has to dojo.require("dijit.form.CheckBox?") in order to get dijit.form.RadioButton?.
Change History (5)
Milestone: |
tbd →
1.3
|
Owner: |
set to bill
|
Status: |
new →
assigned
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Resolution: |
fixed
|
Status: |
closed →
reopened
|
Resolution: |
→ fixed
|
Status: |
reopened →
closed
|
Component: |
Dijit →
Dijit - Form
|
Ah, you are right...
Well, we can't actually split the RadioButton code to a separate file until 2.0, because it would create a circular dependency, since RadioButton extends CheckBox, yet for backwards compatibility doing a dojo.require() of CheckBox.js needs to define RadioButton. That's filed under #8366.
However, we can and should create the stub file where RadioButton points to ComboBox.