Skip to content

Commit

Permalink
fix(taro): once can not destory (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
icai authored and luckyadam committed Jan 13, 2019
1 parent 1126cf2 commit 3418dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Events {
once (events, callback, context) {
const wrapper = (...args) => {
callback.apply(this, args)
this.off(events, callback, context)
this.off(events, wrapper, context)
}

this.on(events, wrapper, context)
Expand Down

0 comments on commit 3418dd6

Please sign in to comment.