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