mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 12:21:52 +00:00
fixed leaking constants to gloabal scope
This commit is contained in:
parent
772e32c220
commit
e3ea980c81
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
OPERATORS = {
|
var OPERATORS = {
|
||||||
'null':function(self){return _null;},
|
'null':function(self){return _null;},
|
||||||
'true':function(self){return true;},
|
'true':function(self){return true;},
|
||||||
'false':function(self){return false;},
|
'false':function(self){return false;},
|
||||||
|
|
@ -23,7 +23,7 @@ OPERATORS = {
|
||||||
'|':function(self, a,b){return b(self, a);},
|
'|':function(self, a,b){return b(self, a);},
|
||||||
'!':function(self, a){return !a;}
|
'!':function(self, a){return !a;}
|
||||||
};
|
};
|
||||||
ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'};
|
var ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'};
|
||||||
|
|
||||||
function lex(text, parseStrings){
|
function lex(text, parseStrings){
|
||||||
var dateParseLength = parseStrings ? 20 : -1,
|
var dateParseLength = parseStrings ? 20 : -1,
|
||||||
|
|
@ -224,7 +224,7 @@ function Parser(text, parseStrings){
|
||||||
this.index = 0;
|
this.index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ZERO = function(){
|
var ZERO = function(){
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue