Skip to content
Browse files

Cleaning up global leak

  • Loading branch information...
1 parent 1b07cad commit f346a30387e1fbca335d2097ab90f7b0864257a5 Keith Simmons committed Aug 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/xml-stream.js
View
4 lib/xml-stream.js
@@ -197,7 +197,7 @@ function parseEvent(event) {
// and returns its last state.
function getFinalState(selector) {
if (__own.call(this._finalStates, selector.normalized)) {
- finalState = this._finalStates[selector.normalized];
+ var finalState = this._finalStates[selector.normalized];
} else {
var n = selector.parts.length;
var immediate = false;
@@ -214,7 +214,7 @@ function getFinalState(selector) {
immediate = false;
}
}
- finalState = this._lastState++;
+ var finalState = this._lastState++;
this._finalStates[selector.normalized] = finalState;
}
return finalState;

0 comments on commit f346a30

Please sign in to comment.
Something went wrong with that request. Please try again.