Skip to content

Commit

Permalink
fix: error symbol in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hilongjw committed Nov 15, 2016
1 parent 5e7ffbf commit ca1c6c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ loading, loaded, error
#### Example

```javascript
vm.$Lazyload.$on('loaded', function ({ el, src }}) {
vm.$Lazyload.$on('loaded', function ({ el, src }) {
console.log(el, src)
})
```
Expand All @@ -210,7 +210,7 @@ Listen for a custom event, but only once. The listener will be removed once it t
#### Example

```javascript
vm.$Lazyload.$once('loaded', function ({ el, src }}) {
vm.$Lazyload.$once('loaded', function ({ el, src }) {
console.log(el, src)
})
```
Expand All @@ -229,7 +229,7 @@ If only the event is provided, remove all listeners for that event
#### Example

```javascript
function handler ({ el, src }}) {
function handler ({ el, src }) {
console.log(el, src)
}
vm.$Lazyload.$on('loaded', handler)
Expand Down

0 comments on commit ca1c6c4

Please sign in to comment.