# 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
    191

    1
    1

    1

    1

    1

    1
     var protoclass = require("protoclass")

    // this is the base class for registered components

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

    module.exports = protoclass(Comment, {
      initialize: function (template) {
        return template.nodeFactory.createComment(this.value);
      }
    });

    module.exports.create = function (value) {

      // TODO - check for registered components,
      return new Comment(value);
    }