Initial values for checkboxes in order

This commit is contained in:
George Michael Brower 2011-04-18 12:15:51 -07:00
parent ece6c521f8
commit df12193b83

View File

@ -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;