Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Aug 10, 2019
1 parent fa5c2d7 commit 0f23d56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<script src="./node_modules/sub-events/dist"></script>
Expand Down
3 changes: 0 additions & 3 deletions examples/from-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export function fromEvent(source: Node, event: string): SubEvent<Event> {
* 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<Event> {
const sec: SubEventCount<Event> = new SubEventCount();
Expand Down

0 comments on commit 0f23d56

Please sign in to comment.