浏览代码

EAGLESIX-3004: e replaced with the currval.

Scott Munday 11 年之前
父节点
当前提交
db97224c1b
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 {