Skip to content

Commit

Permalink
Pass a context to factory functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtpc committed Feb 14, 2016
1 parent 35e5a26 commit b8bbcc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instance/internal/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function (Vue) {
} else {
factory.requested = true
var cbs = factory.pendingCallbacks = [cb]
factory(function resolve (res) {
factory.call(this, function resolve (res) {
if (isPlainObject(res)) {
res = Vue.extend(res)
}
Expand Down

0 comments on commit b8bbcc9

Please sign in to comment.