Skip to content

Commit 1acfa94

Browse files
committed
Call changed() with vm context
1 parent 07b5b60 commit 1acfa94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/refresh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function _refresh (options = {}) {
1414
*/
1515
return function refresh () {
1616
const info = getMetaInfo(options)(this.$root)
17-
updateClientMetaInfo(options)(info)
17+
updateClientMetaInfo(options).call(this, info)
1818
return info
1919
}
2020
}

src/client/updateClientMetaInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function _updateClientMetaInfo (options = {}) {
5252

5353
// emit "event" with new info
5454
if (typeof newInfo.changed === 'function') {
55-
newInfo.changed(newInfo, addedTags, removedTags)
55+
newInfo.changed.call(this, newInfo, addedTags, removedTags)
5656
}
5757
} else {
5858
// remove the server render attribute so we can update on changes

0 commit comments

Comments
 (0)