@erickmerchant/framework
Advanced tools
Comparing version 40.2.2 to 40.3.0
16
main.js
@@ -154,2 +154,6 @@ const svgNamespace = 'http://www.w3.org/2000/svg' | ||
const attrNames = [] | ||
const hasExistingAttributes = target.attributes.length | ||
if (attributesLength) { | ||
@@ -168,5 +172,9 @@ for (let i = 0, length = attributesLength; i < length; i++) { | ||
morphAttribute(target, attribute.key, value, meta, listeners) | ||
attrNames.push(attribute.key) | ||
} else { | ||
for (const key of Object.keys(value)) { | ||
morphAttribute(target, key, value[key], meta, listeners) | ||
attrNames.push(key) | ||
} | ||
@@ -178,2 +186,10 @@ } | ||
if (!isSameView && hasExistingAttributes) { | ||
for (const attr of target.attributes) { | ||
if (!~attrNames.indexOf(attr.name)) { | ||
target.removeAttribute(attr.name) | ||
} | ||
} | ||
} | ||
const childrenLength = next.children.length | ||
@@ -180,0 +196,0 @@ let childNode = target.firstChild |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "40.2.2", | ||
"version": "40.3.0", | ||
"description": "A front-end framework.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/erickmerchant/framework#readme", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19213
618