jQuery.fn.extend({
  ButtonPresenter: function(properties) {
    return this.each(function() {

      if (properties != undefined) {
        this.__properties = properties;
      }

      clickEvent = function() {
        w = this.parentNode;
        $(w).publixeEvent(w.__properties.onClick);
      };

      if (this.__properties != undefined) {
        if (this.__properties.onClick != undefined) {
          $('button', this).click(clickEvent);
        }
      }
    });
  }
});
