Skip to content

Commit

Permalink
clear event option wasn't aligned with the doc (#206)
Browse files Browse the repository at this point in the history
Actually it was way confusing. We were looking for `clear` option, but we end up spending an hour for hunting the same, and later we  realized that `clear` is there, but It was not clear because of `mis-alignment`.
  • Loading branch information
pankajparkar authored and tristen committed Jun 10, 2019
1 parent 0959ecf commit c097945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ Subscribe to events that happen within the plugin.

**Parameters**

- `type` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of event. Available events and the data passed into their respective event objects are:- **clear** `{ type: } Type is one of 'origin' or 'destination'`
- `type` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of event. Available events and the data passed into their respective event objects are:-
- **clear** `{ type: } Type is one of 'origin' or 'destination'`
- **loading** `{ type: } Type is one of 'origin' or 'destination'`
- **profile** `{ profile } Profile is one of 'driving', 'walking', or 'cycling'`
- **origin** `{ feature } Fired when origin is set`
Expand Down

0 comments on commit c097945

Please sign in to comment.