mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Initial values for checkboxes in order
This commit is contained in:
parent
ece6c521f8
commit
df12193b83
@ -7,13 +7,8 @@ DAT.GUI.BooleanController = function() {
|
||||
var input = document.createElement('input');
|
||||
input.setAttribute('type', 'checkbox');
|
||||
|
||||
if (arguments[3]) {
|
||||
input.checked = true;
|
||||
this.setValue(true);
|
||||
} else {
|
||||
input.checked = false;
|
||||
this.setValue(false);
|
||||
}
|
||||
input.checked = this.getValue();
|
||||
this.setValue(this.getValue());
|
||||
|
||||
this.domElement.addEventListener('click', function(e) {
|
||||
input.checked = !input.checked;
|
||||
|
Loading…
Reference in New Issue
Block a user