From 9878355df7af29a621403f9303691f0f4d547624 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 18 Aug 2010 18:15:19 -0700 Subject: remove Parser static --- src/Parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser.js b/src/Parser.js index 681aee6a..eacbf117 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -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 { -- cgit v1.2.3