2011-02-02 18:12:55 +00:00
|
|
|
GUI.FunctionController = function() {
|
2011-01-25 08:22:04 +00:00
|
|
|
this.type = "function";
|
2011-01-29 03:56:32 +00:00
|
|
|
var that = this;
|
2011-02-02 18:12:55 +00:00
|
|
|
GUI.Controller.apply(this, arguments);
|
2011-02-02 19:43:49 +00:00
|
|
|
this.domElement.addEventListener('mousedown', function() {
|
2011-01-29 03:56:32 +00:00
|
|
|
that.object[that.propertyName].call(that.object);
|
|
|
|
}, false);
|
|
|
|
this.domElement.style.cursor = "pointer";
|
|
|
|
this.propertyNameElement.style.cursor = "pointer";
|
2011-01-25 08:22:04 +00:00
|
|
|
};
|
2011-02-02 18:12:55 +00:00
|
|
|
GUI.extendController(GUI.FunctionController);
|