Skip to content

Commit b8bbcc9

Browse files
committed
Pass a context to factory functions
1 parent 35e5a26 commit b8bbcc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instance/internal/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function (Vue) {
7676
} else {
7777
factory.requested = true
7878
var cbs = factory.pendingCallbacks = [cb]
79-
factory(function resolve (res) {
79+
factory.call(this, function resolve (res) {
8080
if (isPlainObject(res)) {
8181
res = Vue.extend(res)
8282
}

0 commit comments

Comments
 (0)