X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=parser.js;h=1bbc57b2e92f14abdb86f00e4da4582e5f52a891;hp=de9e9ed5571372f195d313e299901ef627e321b5;hb=5e063be4c624b39f7e066b9674239fd81e471773;hpb=a9b7b42e17754f9129f03be71c1509325401dc3c diff --git a/parser.js b/parser.js index de9e9ed..1bbc57b 100644 --- a/parser.js +++ b/parser.js @@ -6070,10 +6070,15 @@ parse_html = function (args_html, args) { return doc.children } +var this_module = { + parse: parse_html, + Node: Node, +} + if (context === 'module') { - module.exports = parse_html + module.exports = this_module } else { - window.peach_parser = parse_html + window.peach_parser = this_module } }).call(this)