reset release memory
@@ -44,6 +44,9 @@
}
public reset(): void {
+ for (var index = 0; index < this.data.length; index++) {
+ this.data[index] = null;
+ }
this.length = 0;
this._duplicateId++;
@@ -88,4 +91,4 @@
// Statics
private static _GlobalId = 0;
-}
+}