2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 11:10:34 +03:00

refactor: rename inBody to body

This commit is contained in:
Clark Du
2017-11-03 11:32:00 +08:00
parent 5dd7c9fbe6
commit 5b637d5853
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ export default function _tagGenerator (options = {}) {
*/
return function tagGenerator (type, tags) {
return {
text ({inBody = false} = {}) {
text ({body = false} = {}) {
// build a string containing all tags of this type
return tags.reduce((tagsStr, tag) => {
if (!!tag.inBody !== inBody) return tagsStr
if (!!tag.body !== body) return tagsStr
// build a string containing all attributes of this tag
const attrs = Object.keys(tag).reduce((attrsStr, attr) => {
switch (attr) {