2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 12:22:24 +03:00

es2015-ify source

This commit is contained in:
Declan de Wet
2016-10-31 22:16:43 +02:00
parent f8b6ded280
commit 64dcc9720a
9 changed files with 122 additions and 56 deletions
+2 -3
View File
@@ -137,7 +137,7 @@ function getMetaInfoDefinition (Vue, $instance, metaInfo = {
// (this allows meta info to be inferred from props & data)...
for (let key in componentMetaInfo) {
if (componentMetaInfo.hasOwnProperty(key)) {
var val = componentMetaInfo[key]
const val = componentMetaInfo[key]
if (typeof val === 'function') {
componentMetaInfo[key] = val.call($instance)
}
@@ -152,8 +152,7 @@ function getMetaInfoDefinition (Vue, $instance, metaInfo = {
// them into existing data
const len = $instance.$children.length
if (len) {
var i = 0
for (; i < len; i++) {
for (let i = 0; i < len; i++) {
metaInfo = getMetaInfoDefinition(Vue, $instance.$children[i], metaInfo)
}
}