Browse Source

EAGLESIX-3004: e replaced with the currval.

Scott Munday 11 years ago
parent
commit
db97224c1b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/pipeline/matcher/MatchExpressionParser.js

+ 2 - 2
lib/pipeline/matcher/MatchExpressionParser.js

@@ -152,11 +152,11 @@ proto._parse = function _parse(obj, level){
 					return status;
 				root.add(status.result);*/
 			} else if ('text' === rest) {
-				if (e._type !== 'Object') {
+				if (currval !== 'Object') {
 					return {code: ErrorCodes.BAD_VALUE, description: '$text expects an object'};
 				}
 
-				return this.expressionTextCallback(e);
+				return this.expressionTextCallback(currval);
 			}
 			else if ("comment" == rest) {}
 			else {