dat.gui/elements/controller-boolean/controller-boolean.js
George Michael Brower d19dc2ef40 style
2014-09-07 21:31:51 -04:00

22 lines
283 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;
}
} );