We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc08177 commit a99e950Copy full SHA for a99e950
src/utils/event.ts
@@ -34,7 +34,7 @@ export class Event<T> {
34
*/
35
onNext(listener: (data: T) => void, scope?:any) : void {
36
let remove = this.addEventListener((data)=>{
37
- remove();
+ Promise.resolve().then(()=>remove()); // temporary workaround for https://github.com/AnalyticalGraphicsInc/cesium/issues/5827
38
listener.apply(scope, data);
39
});
40
}
0 commit comments