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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user