From 5ad671169bbbd8fb342c97366c612c769c40a805 Mon Sep 17 00:00:00 2001 From: pimlie Date: Fri, 8 Mar 2019 23:05:39 +0100 Subject: [PATCH] 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 --- src/client/refresh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/refresh.js b/src/client/refresh.js index 88962405..a70deeee 100644 --- a/src/client/refresh.js +++ b/src/client/refresh.js @@ -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 }