2011-01-24 19:38:52 +00:00
|
|
|
var FunctionController = function() {
|
|
|
|
this.type = "function";
|
2011-01-24 20:28:13 +00:00
|
|
|
var _this = this;
|
2011-01-24 19:38:52 +00:00
|
|
|
Controller.apply(this, arguments);
|
2011-01-24 20:28:13 +00:00
|
|
|
this.domElement.addEventListener('click', function() {
|
|
|
|
_this.object[_this.propertyName].call(_this.object);
|
|
|
|
}, false);
|
|
|
|
this.domElement.style.cursor = "pointer";
|
2011-01-24 21:21:21 +00:00
|
|
|
this.propertyNameElement.style.cursor = "pointer";
|
2011-01-24 19:38:52 +00:00
|
|
|
};
|
|
|
|
FunctionController.prototype = new Controller();
|
|
|
|
FunctionController.prototype.constructor = FunctionController;
|