Reset before trigger just in case the function triggers too
This commit is contained in:
parent
a5ba0cad1f
commit
46d53e5c8c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue