remove Parser static

This commit is contained in:
Misko Hevery 2010-08-18 18:15:19 -07:00
parent 625f32b7eb
commit 9878355df7

View file

@ -224,7 +224,7 @@ function Parser(text, parseStrings){
this.index = 0;
}
Parser.ZERO = function(){
ZERO = function(){
return 0;
};
@ -452,7 +452,7 @@ Parser.prototype = {
if (this.expect('+')) {
return this.primary();
} else if (token = this.expect('-')) {
return this._binary(Parser.ZERO, token.fn, this.unary());
return this._binary(ZERO, token.fn, this.unary());
} else if (token = this.expect('!')) {
return this._unary(token.fn, this.unary());
} else {