diff --git a/README.md b/README.md index b0e4b71..30571bd 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ e.onCount.subscribe((info: ISubCountChange) => { ### Browser -When using directly inside HTML, you can access all types under `subEvents` namespace: +When including directly from HTML, you can access all types under `subEvents` namespace: ```html diff --git a/examples/from-event.ts b/examples/from-event.ts index 5df132d..292a2ac 100644 --- a/examples/from-event.ts +++ b/examples/from-event.ts @@ -21,9 +21,6 @@ export function fromEvent(source: Node, event: string): SubEvent { * Example of sharing Event-s, based on their subscription count: * - we call `addEventListener` whenever the first subscriber has been registered; * - we call `removeEventListener` after the last subscription has been cancelled. - * - * Such approach is suitable primarily for global resources, because we need to - * permanently maintain our `onCount` subscription, so we never cancel it. */ export function fromSharedEvent(source: Node, event: string): SubEventCount { const sec: SubEventCount = new SubEventCount();