mirror of
https://github.com/dataarts/dat.gui.git
synced 2025-01-02 03:14:20 +00:00
23 lines
264 B
JavaScript
23 lines
264 B
JavaScript
/* globals Gui, Polymer */
|
|
'use strict';
|
|
|
|
Gui.register('controller-boolean', function(value) {
|
|
|
|
return typeof value == 'boolean';
|
|
|
|
});
|
|
|
|
Polymer('controller-boolean', {
|
|
|
|
ready: function() {
|
|
|
|
},
|
|
|
|
toggle: function() {
|
|
|
|
this.value = !this.value;
|
|
|
|
}
|
|
|
|
});
|