@marko/runtime-tags 6.0.137 → 6.0.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug/html.js +3 -2
- package/dist/debug/html.mjs +3 -2
- package/dist/html.js +2 -2
- package/dist/html.mjs +2 -2
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
|
@@ -3204,11 +3204,12 @@ var _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3204
3204
|
);
|
|
3205
3205
|
}
|
|
3206
3206
|
const childScope = getScopeById(branchId);
|
|
3207
|
-
|
|
3207
|
+
const needsScript = childScope && (childScope["EventAttributes:" /* EventAttributes */ + (true ? `#${renderer}/0` : "a")] || childScope["ControlledHandler:" /* ControlledHandler */ + (true ? `#${renderer}/0` : "a")]);
|
|
3208
|
+
if (needsScript) {
|
|
3208
3209
|
childScope["#Renderer" /* Renderer */] = renderer;
|
|
3209
3210
|
_script(branchId, DYNAMIC_TAG_SCRIPT_REGISTER_ID);
|
|
3210
3211
|
}
|
|
3211
|
-
if (shouldResume) {
|
|
3212
|
+
if (shouldResume || needsScript) {
|
|
3212
3213
|
_html(
|
|
3213
3214
|
state.mark(
|
|
3214
3215
|
"'" /* BranchEndNativeTag */,
|
package/dist/debug/html.mjs
CHANGED
|
@@ -3111,11 +3111,12 @@ var _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, s
|
|
|
3111
3111
|
);
|
|
3112
3112
|
}
|
|
3113
3113
|
const childScope = getScopeById(branchId);
|
|
3114
|
-
|
|
3114
|
+
const needsScript = childScope && (childScope["EventAttributes:" /* EventAttributes */ + (true ? `#${renderer}/0` : "a")] || childScope["ControlledHandler:" /* ControlledHandler */ + (true ? `#${renderer}/0` : "a")]);
|
|
3115
|
+
if (needsScript) {
|
|
3115
3116
|
childScope["#Renderer" /* Renderer */] = renderer;
|
|
3116
3117
|
_script(branchId, DYNAMIC_TAG_SCRIPT_REGISTER_ID);
|
|
3117
3118
|
}
|
|
3118
|
-
if (shouldResume) {
|
|
3119
|
+
if (shouldResume || needsScript) {
|
|
3119
3120
|
_html(
|
|
3120
3121
|
state.mark(
|
|
3121
3122
|
"'" /* BranchEndNativeTag */,
|
package/dist/html.js
CHANGED
|
@@ -2009,8 +2009,8 @@ var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|p
|
|
|
2009
2009
|
}
|
|
2010
2010
|
_html(`</${renderer}>`);
|
|
2011
2011
|
}
|
|
2012
|
-
let childScope = getScopeById(branchId);
|
|
2013
|
-
|
|
2012
|
+
let childScope = getScopeById(branchId), needsScript = childScope && (childScope["Ia"] || childScope["Ea"]);
|
|
2013
|
+
needsScript && (childScope.R = renderer, _script(branchId, "d")), (shouldResume || needsScript) && _html(
|
|
2014
2014
|
state.mark(
|
|
2015
2015
|
"'" /* BranchEndNativeTag */,
|
|
2016
2016
|
scopeId + " " + accessor + " " + branchId
|
package/dist/html.mjs
CHANGED
|
@@ -1919,8 +1919,8 @@ var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|p
|
|
|
1919
1919
|
}
|
|
1920
1920
|
_html(`</${renderer}>`);
|
|
1921
1921
|
}
|
|
1922
|
-
let childScope = getScopeById(branchId);
|
|
1923
|
-
|
|
1922
|
+
let childScope = getScopeById(branchId), needsScript = childScope && (childScope["Ia"] || childScope["Ea"]);
|
|
1923
|
+
needsScript && (childScope.R = renderer, _script(branchId, "d")), (shouldResume || needsScript) && _html(
|
|
1924
1924
|
state.mark(
|
|
1925
1925
|
"'" /* BranchEndNativeTag */,
|
|
1926
1926
|
scopeId + " " + accessor + " " + branchId
|