Reset before trigger just in case the function triggers too

This commit is contained in:
Travis Ralston 2020-07-10 08:14:33 -06:00
parent a5ba0cad1f
commit 46d53e5c8c

View file

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