Browse Source

EAGLESIX-3006: Added setTag() code to shallowClone().

Scott Munday 11 năm trước cách đây
mục cha
commit
147e9f5780
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lib/pipeline/matcher/AndMatchExpression.js

+ 4 - 0
lib/pipeline/matcher/AndMatchExpression.js

@@ -79,6 +79,10 @@ proto.shallowClone = function shallowClone( /*  */ ){
 		e.add(this.getChild(i).shallowClone());
 	}
 
+	if (this.getTag()) {
+		e.setTag(this.getTag().clone());
+	}
+
 	return e; // Return the shallow copy.
 };