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

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

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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    161

    1

    9
    9

     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);
      }
    });