|
|
@@ -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();
|
|
|
|