dat.gui/elements/controller-boolean/controller-boolean.js
2014-09-03 21:14:51 -07:00

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;
}
});