aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/parse.js
diff options
context:
space:
mode:
authorIgor Minar2012-04-10 14:29:49 -0700
committerIgor Minar2012-04-10 16:52:12 -0700
commit52ee1ab5eb0f3197453b26c60a70239ac3fffea7 (patch)
tree2c4dc57ec34d4fbc08248d72daf403bc36421f46 /src/ng/parse.js
parentfcc556df3745d4c7768e235cb5f1caf70eb34639 (diff)
downloadangular.js-52ee1ab5eb0f3197453b26c60a70239ac3fffea7.tar.bz2
chore(*): remove dead code and fix code style issues
Diffstat (limited to 'src/ng/parse.js')
-rw-r--r--src/ng/parse.js24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/ng/parse.js b/src/ng/parse.js
index cd60bc83..e5cb55d7 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -161,7 +161,7 @@ function lex(text){
//check if this is not a method invocation and if it is back out to last dot
if (lastDot) {
- peekIndex = index
+ peekIndex = index;
while(peekIndex < text.length) {
var ch = text.charAt(peekIndex);
if (ch == '(') {
@@ -269,7 +269,8 @@ function parser(text, json, $filter){
functionCall = _functionCall,
fieldAccess = _fieldAccess,
objectIndex = _objectIndex,
- filterChain = _filterChain
+ filterChain = _filterChain;
+
if(json){
// The extra level of aliasing is here, just in case the lexer misses something, so that
// we prevent any accidental execution in JSON.
@@ -344,10 +345,6 @@ function parser(text, json, $filter){
};
}
- function hasTokens () {
- return tokens.length > 0;
- }
-
function statements() {
var statements = [];
while(true) {
@@ -497,21 +494,6 @@ function parser(text, json, $filter){
}
}
- function _functionIdent(fnScope) {
- var token = expect();
- var element = token.text.split('.');
- var instance = fnScope;
- var key;
- for ( var i = 0; i < element.length; i++) {
- key = element[i];
- if (instance)
- instance = instance[key];
- }
- if (!isFunction(instance)) {
- throwError("should be a function", token);
- }
- return instance;
- }
function primary() {
var primary;