# Code coverage report for lib/template/vnode/element/valueAttribute.js

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

All files » lib/template/vnode/element/ » valueAttribute.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    111

    1

    9
    9

     var ScriptAttribute = require("../../../attributes/script");

    module.exports = ScriptAttribute.extend({
      initialize: function () {
      },
      update: function () {
        Iif (this.currentValue == null) return this.node.removeAttribute(this.key);
        this.node.setAttribute(this.key, this.currentValue);
      }
    });