WoltLab/WCF — Issue #376: DOMNodeInsertedHandler - Don't reset via PeriodicalExecuter
Author: TimWolla
Created: 2012-01-13 20:45:28+00:00
State: open

I'd suggest resetting the _isExecuting flag not via a PeriodicalExecuter. The callbacks will be fired synchronous anyway so this should not cause any problems and avoid problems with rapidly inserting new DOMNodes, that depend of the handler:

```
_executeCallbacks: function(event) {
if (this._isExecuting) return;

this._isExecuting = true;

this._callbacks.each(function(pair) {
// execute callback
pair.value(event);
});
this._isExecuting = false;
}
```