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