mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
12 lines
389 B
JavaScript
12 lines
389 B
JavaScript
GUI.FunctionController = function() {
|
|
this.type = "function";
|
|
var that = this;
|
|
GUI.Controller.apply(this, arguments);
|
|
this.domElement.addEventListener('mousedown', function() {
|
|
that.object[that.propertyName].call(that.object);
|
|
}, false);
|
|
this.domElement.style.cursor = "pointer";
|
|
this.propertyNameElement.style.cursor = "pointer";
|
|
};
|
|
GUI.extendController(GUI.FunctionController);
|