瀏覽代碼

EAGLESIX-3004: Removed terse code.

Scott Munday 11 年之前
父節點
當前提交
359dab5e9d
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      lib/pipeline/matcher/TextMatchExpression.js

+ 2 - 4
lib/pipeline/matcher/TextMatchExpression.js

@@ -3,9 +3,7 @@
 var LeafMatchExpression = require('./LeafMatchExpression.js');
 
 var TextMatchExpression = module.exports = function TextMatchExpression() {
-	base.call(this);
-
-	this._matchType = 'TEXT';
+	base.call(this, 'TEXT');
 }, klass = TextMatchExpression, base = LeafMatchExpression, proto = klass.prototype = Object.create(base.prototype, {constructor: {value: klass}});
 
 /**
@@ -60,7 +58,7 @@ proto.matchesSingleElement = function matchesSingleElement(e) {
 proto.debugString = function debugString(level) {
 	var rtn = this._debugAddSpace(level);
 
-	rtn += 'TEXT : query=' + ', language=' + _language + ', tag=';
+	rtn += 'TEXT : query=' + ', language=' + this._language + ', tag=';
 
 	var tagData = this.getTag();