Skip to content

Commit

Permalink
docs: adapt EventBus documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi authored and TheGreatRefrigerator committed Jan 30, 2023
1 parent ac3205f commit 66d30e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ defined in the main vue instance app:
- `confirmDialog (title, text, options)` - shows a confirm-dialog with the specified title, text and options and returns
a promise. If the user clicks `yes`, the promise will be resolved, if s/he clicks on `no`, the promise will be rejected.

- `eventBus` - accessor to global event bus object, that allows broadcasting and getting events in all components

- `$store` - accessor to app vuex-store

### Pages
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ You can also use the app constants to compare values. For this import `constants

Within the plug-in you can also set listeners to events emitted via `evenBus`, for example `mapViewDataChanged`,
as well as emit those events.
Some events emitted via `eventBus` are:
Some events emitted via `EventBus` are:

- `mapViewDataChanged`
- `loadAvoidPolygons`
Expand All @@ -89,7 +89,7 @@ Some events emitted via `eventBus` are:
- `addRouteStop`
- `appRouteDataChanged`

You can search the entire app for `eventBus.$on(` to find all the events emitted via eventBus.
You can search the entire app for `EventBus.$on(` to find all the events emitted via EventBus.

## List of all hooks available

Expand Down

0 comments on commit 66d30e1

Please sign in to comment.