Reset before trigger just in case the function triggers too

pull/21833/head
Travis Ralston 2020-07-10 08:14:33 -06:00
parent a5ba0cad1f
commit 46d53e5c8c
1 changed files with 1 additions and 1 deletions

View File

@ -50,8 +50,8 @@ export class MarkedExecution {
*/
public trigger() {
if (!this.marked) return;
this.reset(); // reset first just in case the fn() causes a trigger()
this.fn();
this.reset();
}
/**