[Pkg-javascript-commits] [node-expat] 165/371: Parser stream interface: emit 'close' after 'end'

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 0ec5fcbb8a0d92df7018a122b685e04e830aa4bd
Author: Astro <astro at spaceboyz.net>
Date:   Fri Jun 22 03:30:05 2012 +0200

    Parser stream interface: emit 'close' after 'end'
---
 lib/node-expat.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/node-expat.js b/lib/node-expat.js
index d676c5a..4f81968 100644
--- a/lib/node-expat.js
+++ b/lib/node-expat.js
@@ -52,8 +52,8 @@ Parser.prototype.destroySoon = function() {
 Parser.prototype.write = Parser.prototype.parse;
 
 Parser.prototype.end = function() {
-  this.emit('close');
   this.emit('end');
+  this.emit('close');
 };
 
 Parser.prototype.reset = function() {

-- 
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