mirror of
https://github.com/dataarts/dat.gui.git
synced 2025-01-02 03:14:20 +00:00
13 lines
447 B
JavaScript
13 lines
447 B
JavaScript
var FunctionController = function() {
|
|
this.type = "function";
|
|
var that = this;
|
|
Controller.apply(this, arguments);
|
|
this.domElement.addEventListener('click', function() {
|
|
that.object[that.propertyName].call(that.object);
|
|
}, false);
|
|
this.domElement.style.cursor = "pointer";
|
|
this.propertyNameElement.style.cursor = "pointer";
|
|
};
|
|
FunctionController.prototype = new Controller();
|
|
FunctionController.prototype.constructor = FunctionController;
|