mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-16 02:20:33 +03:00
fix: dont call changed with explicit this
in refresh this is probably not the component changed was defined on, removing call(this) gives context control back to the user
This commit is contained in:
committed by
Alexander Lichter
parent
5f8025e126
commit
5ad671169b
@@ -27,7 +27,7 @@ export default function _refresh(options = {}) {
|
||||
const tags = updateClientMetaInfo(options, metaInfo)
|
||||
// emit "event" with new info
|
||||
if (tags && isFunction(metaInfo.changed)) {
|
||||
metaInfo.changed.call(this, metaInfo, tags.addedTags, tags.removedTags)
|
||||
metaInfo.changed(metaInfo, tags.addedTags, tags.removedTags)
|
||||
}
|
||||
|
||||
return { vm: this, metaInfo, tags }
|
||||
|
||||
Reference in New Issue
Block a user