readium / r2-glue-js

Javascript resources that are injected by a Readium-2 streamer or navigator
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

removeEventListener should return Promise #21

Open denglili-ep opened 4 years ago

denglili-ep commented 4 years ago

public removeEventListener(listenerID: number): void { this.call(EventHandlingMessage.RemoveEventListener, [listenerID]); }

The underlying call is async by nature, and the wrapper should reflect it.