mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-26 19:20:24 +00:00
remove Parser static
This commit is contained in:
parent
625f32b7eb
commit
9878355df7
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue