@erickmerchant/framework
Advanced tools
Comparing version 43.6.0 to 43.7.0
@@ -154,5 +154,7 @@ import {tokenTypes} from './html.js' | ||
} else { | ||
const keys = Object.keys(value) | ||
for (let i = 0, len = keys.length; i < len; i++) { | ||
for ( | ||
let i = 0, keys = Object.keys(value), len = keys.length; | ||
i < len; | ||
i++ | ||
) { | ||
const key = keys[i] | ||
@@ -181,6 +183,4 @@ | ||
if (child.type === tokenTypes.variable) { | ||
const variableValue = child.value | ||
child = variables[child.value] | ||
child = variables[variableValue] | ||
if (!Array.isArray(child)) { | ||
@@ -228,11 +228,6 @@ child = [child] | ||
const isSameView = next.view === meta.view | ||
let doMorph = next.dynamic | ||
if (!isExistingElement || !isSameView) { | ||
if (next.dynamic || !isExistingElement || !isSameView) { | ||
meta.view = next.view | ||
doMorph = true | ||
} | ||
if (doMorph) { | ||
morph(target, next, next.variables, isExistingElement, isSameView) | ||
@@ -243,5 +238,3 @@ } | ||
export const createDomView = (target, view) => (state) => { | ||
const current = view(state) | ||
morphRoot(target, current) | ||
morphRoot(target, view(state)) | ||
} |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "43.6.0", | ||
"version": "43.7.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
17866
591