mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 10:22:24 +03:00
chore: lint
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export function addCallback (query, callback) {
|
||||
query = ''
|
||||
}
|
||||
|
||||
callbacks.push([ query, callback ])
|
||||
callbacks.push([query, callback])
|
||||
}
|
||||
|
||||
export function addCallbacks ({ tagIDKeyName }, type, tags, autoAddListeners) {
|
||||
|
||||
@@ -13,6 +13,7 @@ export function triggerUpdate ({ debounceWait }, rootVm, hookName) {
|
||||
|
||||
if (rootVm[rootConfigKey].initialized && !rootVm[rootConfigKey].pausing) {
|
||||
// batch potential DOM updates to prevent extraneous re-rendering
|
||||
// eslint-disable-next-line no-void
|
||||
batchUpdate(() => void rootVm.$meta().refresh(), debounceWait)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function tagGenerator (options, type, tags, generatorOptions) {
|
||||
}
|
||||
|
||||
if (attr === 'callback') {
|
||||
attrs += ` onload="this.__vm_l=1"`
|
||||
attrs += ' onload="this.__vm_l=1"'
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -16,8 +16,8 @@ export default function $meta (options) {
|
||||
const $root = this.$root
|
||||
|
||||
return {
|
||||
'getOptions': () => getOptions(options),
|
||||
'setOptions': (newOptions) => {
|
||||
getOptions: () => getOptions(options),
|
||||
setOptions: (newOptions) => {
|
||||
const refreshNavKey = 'refreshOnceOnNavigation'
|
||||
if (newOptions && newOptions[refreshNavKey]) {
|
||||
options.refreshOnceOnNavigation = !!newOptions[refreshNavKey]
|
||||
@@ -37,10 +37,10 @@ export default function $meta (options) {
|
||||
options.waitOnDestroyed = !!newOptions[waitOnDestroyedKey]
|
||||
}
|
||||
},
|
||||
'refresh': () => refresh($root, options),
|
||||
'inject': () => process.server ? inject($root, options) : showWarningNotSupportedInBrowserBundle('inject'),
|
||||
'pause': () => pause($root),
|
||||
'resume': () => resume($root),
|
||||
'addApp': appId => addApp($root, appId, options)
|
||||
refresh: () => refresh($root, options),
|
||||
inject: () => process.server ? inject($root, options) : showWarningNotSupportedInBrowserBundle('inject'),
|
||||
pause: () => pause($root),
|
||||
resume: () => resume($root),
|
||||
addApp: appId => addApp($root, appId, options)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user