@domql/state
Advanced tools
Comparing version 2.4.12 to 2.5.1
@@ -12,2 +12,3 @@ 'use strict' | ||
element.state = applyInitialState(element, parent, options) | ||
return element.state | ||
} | ||
@@ -112,4 +113,3 @@ | ||
if (state.parent && state.parent.__children) | ||
state.parent.__children[element.key] = state | ||
if (state.parent && state.parent.__children) { state.parent.__children[element.key] = state } | ||
} |
@@ -33,2 +33,3 @@ "use strict"; | ||
element.state = applyInitialState(element, parent, options); | ||
return element.state; | ||
}; | ||
@@ -123,4 +124,5 @@ const applyInitialState = function(element, parent, options) { | ||
} | ||
if (state.parent && state.parent.__children) | ||
if (state.parent && state.parent.__children) { | ||
state.parent.__children[element.key] = state; | ||
} | ||
}; |
{ | ||
"name": "@domql/state", | ||
"version": "2.4.12", | ||
"version": "2.5.1", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "fb655eb1dbbde28cb1b843f13aad21afcfcece40" | ||
"gitHead": "40078b6ea7a4b968eb96a7078d33f4cbcd6b199a" | ||
} |
36329
964