2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-21 03:20:33 +03:00

fix: dont inline typeof definitions

This commit is contained in:
pimlie
2019-02-11 10:37:56 +01:00
parent b4feec0232
commit 5031acf0fa
9 changed files with 53 additions and 22 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import getMetaInfo from '../shared/getMetaInfo'
import { isFunction } from '../shared/typeof'
import updateClientMetaInfo from './updateClientMetaInfo'
export default function _refresh(options = {}) {
@@ -18,7 +19,7 @@ export default function _refresh(options = {}) {
const tags = updateClientMetaInfo(options, metaInfo)
// emit "event" with new info
if (tags && typeof metaInfo.changed === 'function') {
if (tags && isFunction(metaInfo.changed)) {
metaInfo.changed.call(this, metaInfo, tags.addedTags, tags.removedTags)
}