(function(app) {
  'use strict';

  var jCore = require('jcore');
  var helper = app.helper || require('../helper.js');
  var dom = app.dom || require('../dom.js');

  var Button = helper.inherits(function(props) {
    Button.super_.call(this);

    this.isActive = this.prop(false);
    this.element = this.prop(props.element);
    this.cache = this.prop({});
  }, jCore.Component);

  Button.prototype.redraw = function() {
    this.redrawIsActive();
  };

  Button.prototype.redrawIsActive = function() {
    var isActive = this.isActive();
    var cache = this.cache();

    if (isActive === cache.isActive)
      return;

    dom.toggleClass(this.element(), 'active', isActive);
    cache.isActive = isActive;
  };

  if (typeof module !== 'undefined' && module.exports)
    module.exports = Button;
  else
    app.Button = Button;
})(this.app || (this.app = {}));

@@ -273,24 +273,62 @@
 rop(false);%0A
+    this.disabled = this.prop(false);%0A
     this.ele
@@ -360,16 +360,16 @@
 ement);%0A
-
     this
@@ -484,16 +484,43 @@
 tive();%0A
+    this.redrawDisabled();%0A
   %7D;%0A%0A  
@@ -738,24 +738,24 @@
  isActive);%0A
-
     cache.is
@@ -779,16 +779,265 @@
 ;%0A  %7D;%0A%0A
+  Button.prototype.redrawDisabled = function() %7B%0A    var disabled = this.disabled();%0A    var cache = this.cache();%0A%0A    if (disabled === cache.disabled)%0A      return;%0A%0A    dom.disabled(this.element(), disabled);%0A    cache.disabled = disabled;%0A  %7D;%0A%0A
   if (ty

Add property to disable a button