[Pkg-javascript-commits] [node-expat] 166/371: Parser stream interface: do not emit 'data'

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit e00afd3e04d99911360196a0fdfc53c9f08891e3
Author: Astro <astro at spaceboyz.net>
Date:   Fri Jun 22 03:30:25 2012 +0200

    Parser stream interface: do not emit 'data'
    
    Hook this event on your data source instead.
---
 lib/node-expat.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/node-expat.js b/lib/node-expat.js
index 4f81968..86ab310 100644
--- a/lib/node-expat.js
+++ b/lib/node-expat.js
@@ -19,7 +19,6 @@ var Parser = function(encoding) {
 util.inherits(Parser, Stream);
 
 Parser.prototype.parse = function(buf, isFinal) {
-  this.emit('data', buf);
   return this.parser.parse(buf, isFinal);
 };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list