Skip to content

Commit

Permalink
Event handler shortcuts.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Marstall committed Oct 17, 2017
1 parent 655437d commit 5a7ba4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ layerA.on "unfocus", ->
layerA.on "selected", ->
```

Shortcuts are also available:

```coffeescript
layerA.onFocus ->
layerA.onUnfocus ->
layerA.onSelected ->
```

#### Integration with [RemoteLayer](https://github.com/bpxl-labs/RemoteLayer)
```coffeescript
RemoteLayer = require "RemoteLayer"
Expand Down

0 comments on commit 5a7ba4f

Please sign in to comment.