fix(classes): cleanup resources, add cancellable timeouts, and fix bugs in several core utility classes
This commit is contained in:
@@ -116,4 +116,12 @@ export class Stringmap {
|
||||
});
|
||||
this._triggerUntilTrueFunctionArray = filteredArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* destroys the Stringmap, clearing all strings and pending triggers
|
||||
*/
|
||||
public destroy() {
|
||||
this._stringArray = [];
|
||||
this._triggerUntilTrueFunctionArray = [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user