script: do not clone for removeSeparators.

This commit is contained in:
Christopher Jeffrey 2017-01-16 13:57:14 -08:00
parent d840144f3e
commit a1dcb8c381
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -468,7 +468,7 @@ Script.prototype.removeSeparators = function removeSeparators() {
}
if (!found)
return this.clone();
return this;
// Uncommon case: someone actually
// has a code separator. Go through