Skip to content

Commit

Permalink
Remove global callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
apeace committed Feb 29, 2012
1 parent ffc2e43 commit b274a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sax_parser.js
Expand Up @@ -7,7 +7,7 @@ var SaxParser = function(callbacks) {
var parser = new bindings.SaxParser();

// attach callbacks
for (callback in callbacks) {
for (var callback in callbacks) {
parser.on(callback, callbacks[callback]);
}

Expand All @@ -25,7 +25,7 @@ var SaxPushParser = function(callbacks) {
var parser = new bindings.SaxPushParser();

// attach callbacks
for (callback in callbacks) {
for (var callback in callbacks) {
parser.on(callback, callbacks[callback]);
}

Expand Down

0 comments on commit b274a45

Please sign in to comment.