mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
committed by
Tobias Bosch
parent
40d4bb5863
commit
b0307a33eb
@@ -99,7 +99,6 @@ CONSTANTS['this'].sharedGetter = true;
|
||||
|
||||
//Operators - will be wrapped by binaryFn/unaryFn/assignment/filter
|
||||
var OPERATORS = extend(createMap(), {
|
||||
/* jshint bitwise : false */
|
||||
'+':function(self, locals, a,b){
|
||||
a=a(self, locals); b=b(self, locals);
|
||||
if (isDefined(a)) {
|
||||
@@ -116,7 +115,6 @@ var OPERATORS = extend(createMap(), {
|
||||
'*':function(self, locals, a,b){return a(self, locals)*b(self, locals);},
|
||||
'/':function(self, locals, a,b){return a(self, locals)/b(self, locals);},
|
||||
'%':function(self, locals, a,b){return a(self, locals)%b(self, locals);},
|
||||
'^':function(self, locals, a,b){return a(self, locals)^b(self, locals);},
|
||||
'===':function(self, locals, a, b){return a(self, locals)===b(self, locals);},
|
||||
'!==':function(self, locals, a, b){return a(self, locals)!==b(self, locals);},
|
||||
'==':function(self, locals, a,b){return a(self, locals)==b(self, locals);},
|
||||
@@ -127,14 +125,12 @@ var OPERATORS = extend(createMap(), {
|
||||
'>=':function(self, locals, a,b){return a(self, locals)>=b(self, locals);},
|
||||
'&&':function(self, locals, a,b){return a(self, locals)&&b(self, locals);},
|
||||
'||':function(self, locals, a,b){return a(self, locals)||b(self, locals);},
|
||||
'&':function(self, locals, a,b){return a(self, locals)&b(self, locals);},
|
||||
'!':function(self, locals, a){return !a(self, locals);},
|
||||
|
||||
//Tokenized as operators but parsed as assignment/filters
|
||||
'=':true,
|
||||
'|':true
|
||||
});
|
||||
/* jshint bitwise: true */
|
||||
var ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user