# Code coverage report for lib/template/vnode/comment/index.js

## Statements: 100% (7 / 7) Branches: 100% (0 / 0) Functions: 100% (3 / 3) Lines: 100% (7 / 7) Ignored: none

All files » lib/template/vnode/comment/ » index.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    291

    1
    1

    1

    1

    1
    1

     var protoclass = require("protoclass");

    /**
     */

    function Comment(value) {
      this.value    = value;
    }

    /**
     */

    module.exports = protoclass(Comment, {

      /**
       */

      initialize: function(template) {
        return template.nodeFactory.createComment(this.value);
      }
    });

    /**
     */

    module.exports.create = function(value) {
      return new Comment(value);
    };