Code coverage report for lib/attributes/enable.js

Statements: 40% (2 / 5)      Branches: 0% (0 / 2)      Functions: 0% (0 / 1)      Lines: 40% (2 / 5)      Ignored: none     

All files » lib/attributes/ » enable.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 151         1                  
var ScriptAttribute = require("./script");
 
/**
 */
 
module.exports = ScriptAttribute.extend({
  update: function() {
    if (this.currentValue) {
      this.node.removeAttribute("disabled");
    } else {
      this.node.setAttribute("disabled", "disabled");
    }
  }
});