mirror of https://github.com/vector-im/riot-web
Reset before trigger just in case the function triggers too
parent
a5ba0cad1f
commit
46d53e5c8c
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue