From cff6189929b08b6663d1fcfb366bf1b6febd6fa0 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 4 Mar 2011 17:09:21 -0800 Subject: [PATCH] expose .textOnly --- lib/parser.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/parser.js b/lib/parser.js index a3767fd32..7ba6dcdc8 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -12,12 +12,6 @@ var Lexer = require('./lexer') , nodes = require('./nodes'); -/** - * Tags that may not contain tags. - */ - -var textOnly = ['script', 'textarea', 'style']; - /** * Initialize `Parser` with the given input `str` and `filename`. * @@ -26,12 +20,18 @@ var textOnly = ['script', 'textarea', 'style']; * @api public */ -var Parser = module.exports = function Parser(str, filename){ +var Parser = exports = module.exports = function Parser(str, filename){ this.input = str; this.lexer = new Lexer(str); this.filename = filename; }; +/** + * Tags that may not contain tags. + */ + +var textOnly = exports.textOnly = ['script', 'textarea', 'style']; + /** * Parser prototype. */