瀏覽代碼

EAGLESIX-2653: Add tag cloning to shallowClone

Chris Sexton 11 年之前
父節點
當前提交
f3a7ef5af3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/pipeline/matcher/ExistsMatchExpression.js

+ 2 - 0
lib/pipeline/matcher/ExistsMatchExpression.js

@@ -71,6 +71,8 @@ proto.matchesSingleElement = function matchesSingleElement(e) {
 proto.shallowClone = function shallowClone(){
 	var e = new ExistsMatchExpression();
 	e.init(this.path());
+	if (this.getTag())
+		e.setTag(this.getTag().clone());
 	return e;
 };