UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

27 lines (21 loc) 490 B
'use strict'; const Container = require('./container'); const Node = require('./node'); class Comment extends Node { constructor (opts) { super(opts); this.type = 'comment'; this.inline = Object(opts).inline || false; } toString () { return [ this.raws.before, this.inline ? '//' : '/*', String(this.value), this.inline ? '' : '*/', this.raws.after ].join(''); } }; Container.registerWalker(Comment); module.exports = Comment;