Browse Source

EAGLESIX-2653: Add tag cloning to shallowClone

Chris Sexton 11 years ago
parent
commit
f3a7ef5af3
1 changed files with 2 additions and 0 deletions
  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(){
 proto.shallowClone = function shallowClone(){
 	var e = new ExistsMatchExpression();
 	var e = new ExistsMatchExpression();
 	e.init(this.path());
 	e.init(this.path());
+	if (this.getTag())
+		e.setTag(this.getTag().clone());
 	return e;
 	return e;
 };
 };