2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-12 18:52:24 +03:00

Call changed() with vm context

This commit is contained in:
Sébastien Chopin
2017-08-15 10:39:23 +02:00
parent 07b5b60d3b
commit 1acfa946de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export default function _refresh (options = {}) {
*/
return function refresh () {
const info = getMetaInfo(options)(this.$root)
updateClientMetaInfo(options)(info)
updateClientMetaInfo(options).call(this, info)
return info
}
}
+1 -1
View File
@@ -52,7 +52,7 @@ export default function _updateClientMetaInfo (options = {}) {
// emit "event" with new info
if (typeof newInfo.changed === 'function') {
newInfo.changed(newInfo, addedTags, removedTags)
newInfo.changed.call(this, newInfo, addedTags, removedTags)
}
} else {
// remove the server render attribute so we can update on changes