# Code coverage report for lib/attributes/enable.js

## Statements: 80% (4 / 5) Branches: 50% (1 / 2) Functions: 100% (1 / 1) Lines: 80% (4 / 5) Ignored: none

All files » lib/attributes/ » enable.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    141

    1

    1

    1

     ScriptAttribute = require("./script");

    /**
     */

    module.exports = ScriptAttribute.extend({
      update: function () {
        Iif (this.currentValue) {
          this.node.removeAttribute("disabled");
        } else {
          this.node.setAttribute("disabled", "disabled");
        }
      }
    });