@erickmerchant/framework
Advanced tools
Comparing version 43.3.0 to 43.3.1
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "43.3.0", | ||
"version": "43.3.1", | ||
"description": "A front-end framework.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/erickmerchant/framework#readme", |
@@ -27,31 +27,31 @@ import {escape} from './escape.js' | ||
const reducedAttributes = Array.from({ | ||
*[Symbol.iterator]() { | ||
for (const attribute of attributes) { | ||
if (attribute.key) { | ||
if (attribute.key.startsWith('@')) continue | ||
const reducedAttributes = [] | ||
const hasColon = attribute.key.startsWith(':') | ||
for (let i = 0; i < attributes.length; i++) { | ||
const attribute = attributes[i] | ||
if (hasColon) { | ||
attribute.key = attribute.key.substring(1) | ||
} | ||
if (attribute.key) { | ||
if (attribute.key.startsWith('@')) continue | ||
yield attribute | ||
} else { | ||
for (let key of Object.keys(variables[attribute.value])) { | ||
if (key.startsWith('@')) continue | ||
const hasColon = attribute.key.startsWith(':') | ||
const hasColon = key.startsWith(':') | ||
if (hasColon) { | ||
attribute.key = attribute.key.substring(1) | ||
} | ||
if (hasColon) { | ||
key = key.substring(1) | ||
} | ||
reducedAttributes.push(attribute) | ||
} else { | ||
for (let key of Object.keys(variables[attribute.value])) { | ||
if (key.startsWith('@')) continue | ||
yield {key, value: variables[attribute.value][key]} | ||
} | ||
const hasColon = key.startsWith(':') | ||
if (hasColon) { | ||
key = key.substring(1) | ||
} | ||
reducedAttributes.push({key, value: variables[attribute.value][key]}) | ||
} | ||
} | ||
}) | ||
} | ||
@@ -58,0 +58,0 @@ for (const attr of reducedAttributes) { |
18388
597