Permalink
Browse files

expose .textOnly

  • Loading branch information...
1 parent 5c78fa0 commit cff6189929b08b6663d1fcfb366bf1b6febd6fa0 @tj tj committed Mar 5, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/parser.js
View
@@ -13,26 +13,26 @@ 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`.
*
* @param {String} str
* @param {String} filename
* @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.
*/

0 comments on commit cff6189

Please sign in to comment.