Skip to content

Commit 5ad6711

Browse files
pimlieTheAlexLichter
authored andcommitted
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
1 parent 5f8025e commit 5ad6711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/refresh.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function _refresh(options = {}) {
2727
const tags = updateClientMetaInfo(options, metaInfo)
2828
// emit "event" with new info
2929
if (tags && isFunction(metaInfo.changed)) {
30-
metaInfo.changed.call(this, metaInfo, tags.addedTags, tags.removedTags)
30+
metaInfo.changed(metaInfo, tags.addedTags, tags.removedTags)
3131
}
3232

3333
return { vm: this, metaInfo, tags }

0 commit comments

Comments
 (0)