1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Clear sequentialize cache when empty to remove chance of memory leaks (#26)

This commit is contained in:
Fred Cox
2019-02-02 16:23:16 +02:00
committed by Kyle Spearrin
parent 9e97b1e656
commit e7f4dccfc3
2 changed files with 10 additions and 11 deletions

View File

@@ -120,7 +120,7 @@ class Foo {
calls = 0;
@sequentialize((args) => 'bar' + args[0])
bar(a: any) {
bar(a: number) {
this.calls++;
return new Promise((res) => {
setTimeout(() => {
@@ -130,7 +130,7 @@ class Foo {
}
@sequentialize((args) => 'baz' + args[0])
baz(a: any) {
baz(a: number) {
this.calls++;
return new Promise((res) => {
setTimeout(() => {