Skip to content

Commit

Permalink
fix(runtime): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a authored and Chen-jj committed Nov 3, 2020
1 parent aaf9c13 commit 9393072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro-runtime/src/dom/root.ts
Expand Up @@ -98,7 +98,7 @@ export class TaroRootElement extends TaroElement {
}, 0)
}

public enqueueUpdateCallbak (cb: Function, ctx?: Record<string, any>) {
public enqueueUpdateCallback (cb: Function, ctx?: Record<string, any>) {
this.updateCallbacks.push(() => {
ctx ? cb.call(ctx) : cb()
})
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-runtime/src/next-tick.ts
Expand Up @@ -29,7 +29,7 @@ export const nextTick = (cb: Function, ctx?: Record<string, any>) => {
timerFunc()
}) ?? timerFunc()
} else {
pageElement.enqueueUpdateCallbak(cb, ctx)
pageElement.enqueueUpdateCallback(cb, ctx)
}
} else {
timerFunc()
Expand Down

0 comments on commit 9393072

Please sign in to comment.