[Pkg-javascript-commits] [node-expat] 157/371: tidying exports

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:57 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 2dec97ec9ee8fda904dd54d852d4027d4426094c
Author: Tom Hughes-Croucher <tom.croucher at gmail.com>
Date:   Tue Jun 5 23:02:59 2012 -0700

    tidying exports
---
 lib/node-expat.js | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/lib/node-expat.js b/lib/node-expat.js
index 20319b1..1d393ef 100644
--- a/lib/node-expat.js
+++ b/lib/node-expat.js
@@ -60,6 +60,18 @@ Parser.prototype.end = function() {
   this.emit('end');
 };
 
+Parser.prototype.reset = function() {
+    return this.parser.reset();
+};
+Parser.prototype.getCurrentLineNumber = function() {
+    return this.parser.getCurrentLineNumber();
+};
+Parser.prototype.getCurrentColumnNumber = function() {
+    return this.parser.getCurrentColumnNumber();
+};
+Parser.prototype.getCurrentByteIndex = function() {
+    return this.parser.getCurrentByteIndex();
+};
 
 //Exports
 
@@ -70,15 +82,3 @@ exports.createParser = function(cb) {
   if(cb)  { parser.on('startElement', cb); }
   return parser;
 };
-exports.Parser.prototype.reset = function() {
-    return this.parser.reset();
-};
-exports.Parser.prototype.getCurrentLineNumber = function() {
-    return this.parser.getCurrentLineNumber();
-};
-exports.Parser.prototype.getCurrentColumnNumber = function() {
-    return this.parser.getCurrentColumnNumber();
-};
-exports.Parser.prototype.getCurrentByteIndex = function() {
-    return this.parser.getCurrentByteIndex();
-};

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