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

Statements: 57.14% (4 / 7)      Branches: 100% (0 / 0)      Functions: 0% (0 / 3)      Lines: 57.14% (4 / 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      
var protoclass = require("protoclass");
 
/**
 */
 
function Comment(value) {
  this.value    = value;
}
 
/**
 */
 
module.exports = protoclass(Comment, {
 
  /**
   */
 
  initialize: function(template) {
    return template.document.createComment(this.value);
  }
});
 
/**
 */
 
module.exports.create = function(value) {
  return new Comment(value);
};