remove references to window (not supported by node)

This commit is contained in:
Fabian Jakobs 2010-12-15 20:01:26 +01:00
commit bf71127511

View file

@ -77,8 +77,6 @@ var Tokenizer = function(rules) {
if (re.lastIndex == lastIndex) { throw new Error("tokenizer error"); }
lastIndex = re.lastIndex;
window.LOG && console.log(currentState, match);
for ( var i = 0; i < state.length; i++) {
if (match[i + 1]) {
if (typeof state[i].token == "function") {
@ -118,8 +116,6 @@ var Tokenizer = function(rules) {
tokens.push(token);
}
window.LOG && console.log(tokens, currentState);
return {
tokens : tokens,
state : currentState