FunctionController = function(object, property, text) {

    FunctionController.superclass.call(this, object, property);

    var _this = this;

    this.__button = document.createElement('div');
    this.__button.innerHTML = text === undefined ? 'Fire' : text;
    dom.bind(this.__button, 'click', function(e) {
      e.preventDefault();
      _this.fire();
      return false;
    });

    dom.addClass(this.__button, 'button');

    this.domElement.appendChild(this.__button);


  }
@class Provides a GUI interface to fire a specified method, a property of an object.

@extends dat.controllers.Controller

@param {Object} object The object to be manipulated
@param {string} property The name of the property to be manipulated

@member dat.controllers