Skip to content

Commit

Permalink
fix: improved container reset
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Feb 22, 2023
1 parent 00d08b3 commit e4996d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/src/Core/Container.ts
Expand Up @@ -155,7 +155,7 @@ export class Container {
private readonly _engine;
private readonly _eventListeners;
private _firstStart;
private readonly _initialSourceOptions;
private _initialSourceOptions;
private readonly _intersectionObserver;
private _options;
private _paused;
Expand Down Expand Up @@ -643,7 +643,9 @@ export class Container {
return;
}

this._initialSourceOptions = undefined;
this._options = loadContainerOptions(this._engine, this);
this.actualOptions = loadContainerOptions(this._engine, this, this._options);

return this.refresh();
}
Expand Down

0 comments on commit e4996d0

Please sign in to comment.