Skip to content

Commit

Permalink
fix: dont call changed with explicit this
Browse files Browse the repository at this point in the history
in refresh this is probably not the component changed was defined on, removing call(this) gives context control back to the user
  • Loading branch information
pimlie authored and manniL committed Mar 12, 2019
1 parent 5f8025e commit 5ad6711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 5ad6711

Please sign in to comment.