Permalink
Browse files

Ensure we reset the parser each time

  • Loading branch information...
1 parent d4307f6 commit 19602e091f4b657d0e22cd9a132944a6d63db144 @mhart mhart committed Nov 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/node.io/dom.js
View
@@ -106,6 +106,7 @@ Job.prototype.prepareHtmlparser = function () {
var self = this, $, htmlparser = require('htmlparser');
this.postParse = function () {};
this.htmlparser = new htmlparser.Parser(new htmlparser.DefaultHandler(function () {
+ self.htmlparser = null;
self.postParse.apply(this, arguments);
}, {verbose: true, ignoreWhitespace: true}
));

0 comments on commit 19602e0

Please sign in to comment.