mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
23 lines
251 B
JavaScript
23 lines
251 B
JavaScript
/* globals Gui, Polymer */
|
|
|
|
|
|
Gui.register('controller-boolean', function(value) {
|
|
|
|
return typeof value == 'boolean';
|
|
|
|
});
|
|
|
|
Polymer('controller-boolean', {
|
|
|
|
ready: function() {
|
|
|
|
},
|
|
|
|
toggle: function() {
|
|
|
|
this.value = !this.value;
|
|
|
|
}
|
|
|
|
});
|