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