Просмотр исходного кода

Refs #3304. Minor update to fix issue with matchType.

Spencer Rathbun 12 лет назад
Родитель
Сommit
74b5aa8137
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lib/pipeline/matcher/ListOfMatchExpression.js

+ 3 - 2
lib/pipeline/matcher/ListOfMatchExpression.js

@@ -1,8 +1,9 @@
 "use strict";
 
 // Autogenerated by cport.py on 2013-09-17 14:37
-var ListOfMatchExpression = module.exports = function (/*type*/){
+var ListOfMatchExpression = module.exports = function (matchType){
 	this._expressions = [];
+	this._matchType = matchType;
 }, klass = ListOfMatchExpression, base =  Object  , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
 
 // File: expression_tree.h lines: 56-56
@@ -56,7 +57,7 @@ proto.clearAndRelease = function clearAndRelease(){
  */
 proto.equivalent = function equivalent(other){
 	// File: expression_tree.cpp lines: 45-59
-	if (matchType() != other.matchType())
+	if (this._matchType != other._matchType)
 		return false;
 
 	var realOther = new ListOfMatchExpression(other);