Navigation Menu

Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Mar 30, 2013
1 parent 5a28547 commit c445375
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/Parser.js
Expand Up @@ -181,7 +181,7 @@ Parser.prototype.reset = function(){
}
};

//Parses a complete HTML and pushes it to the handler
//Parses a complete HTML document and pushes it to the handler
Parser.prototype.parseComplete = function(data){
this.reset();
this.end(data);
Expand Down
6 changes: 3 additions & 3 deletions lib/Stream.js
@@ -1,3 +1,5 @@
module.exports = Stream;

var Parser = require("./Parser.js");

var Stream = function(options){
Expand Down Expand Up @@ -30,6 +32,4 @@ Object.keys(EVENTS).forEach(function(name){
} else {
throw Error("wrong number of arguments!");
}
});

module.exports = Stream;
});
14 changes: 8 additions & 6 deletions tests/02-stream.js
Expand Up @@ -21,12 +21,14 @@ exports.test = function(test, cb){
}
};
}
if(helper.EVENTS.indexOf(name) !== -1) return function(){
tokens.push({
event: name,
data: sliceArr.apply(arguments)
});
};
if(helper.EVENTS.indexOf(name) !== -1){
return function(){
tokens.push({
event: name,
data: sliceArr.call(arguments, 0)
});
};
}
}});
}
else {
Expand Down

0 comments on commit c445375

Please sign in to comment.