@marko/runtime-tags 0.1.4 → 0.1.5
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/dom.js +20 -3
- package/dist/debug/dom.mjs +20 -3
- package/dist/dom.js +1 -1
- package/dist/dom.mjs +1 -1
- package/package.json +1 -1
package/dist/debug/dom.js
CHANGED
|
@@ -983,7 +983,7 @@ function setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer) {
|
|
|
983
983
|
}
|
|
984
984
|
prevScope && destroyScope(prevScope);
|
|
985
985
|
}
|
|
986
|
-
var emptyMarkerMap = /* @__PURE__ */
|
|
986
|
+
var emptyMarkerMap = /* @__PURE__ */ new Map([[Symbol(), getEmptyScope(void 0)]]);
|
|
987
987
|
var emptyMarkerArray = [
|
|
988
988
|
/* @__PURE__ */ getEmptyScope(void 0)
|
|
989
989
|
];
|
|
@@ -1263,23 +1263,40 @@ function registerSubscriber(id, signal) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
// src/dom/schedule.ts
|
|
1266
|
+
var task;
|
|
1266
1267
|
var port2 = /* @__PURE__ */ (() => {
|
|
1267
1268
|
const { port1, port2: port22 } = new MessageChannel();
|
|
1268
1269
|
port1.onmessage = () => {
|
|
1269
1270
|
isScheduled = false;
|
|
1270
|
-
|
|
1271
|
+
if (true) {
|
|
1272
|
+
task.run(run);
|
|
1273
|
+
task = void 0;
|
|
1274
|
+
} else {
|
|
1275
|
+
run();
|
|
1276
|
+
}
|
|
1271
1277
|
};
|
|
1272
1278
|
return port22;
|
|
1273
1279
|
})();
|
|
1274
1280
|
var isScheduled;
|
|
1275
1281
|
function schedule() {
|
|
1276
1282
|
if (!isScheduled) {
|
|
1283
|
+
if (true) {
|
|
1284
|
+
task = console.createTask?.("queue") || {
|
|
1285
|
+
run(fn) {
|
|
1286
|
+
fn();
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1277
1290
|
isScheduled = true;
|
|
1278
1291
|
queueMicrotask(flushAndWaitFrame);
|
|
1279
1292
|
}
|
|
1280
1293
|
}
|
|
1281
1294
|
function flushAndWaitFrame() {
|
|
1282
|
-
|
|
1295
|
+
if (true) {
|
|
1296
|
+
task.run(run);
|
|
1297
|
+
} else {
|
|
1298
|
+
run();
|
|
1299
|
+
}
|
|
1283
1300
|
requestAnimationFrame(triggerMacroTask);
|
|
1284
1301
|
}
|
|
1285
1302
|
function triggerMacroTask() {
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -908,7 +908,7 @@ function setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer) {
|
|
|
908
908
|
}
|
|
909
909
|
prevScope && destroyScope(prevScope);
|
|
910
910
|
}
|
|
911
|
-
var emptyMarkerMap = /* @__PURE__ */
|
|
911
|
+
var emptyMarkerMap = /* @__PURE__ */ new Map([[Symbol(), getEmptyScope(void 0)]]);
|
|
912
912
|
var emptyMarkerArray = [
|
|
913
913
|
/* @__PURE__ */ getEmptyScope(void 0)
|
|
914
914
|
];
|
|
@@ -1188,23 +1188,40 @@ function registerSubscriber(id, signal) {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
|
|
1190
1190
|
// src/dom/schedule.ts
|
|
1191
|
+
var task;
|
|
1191
1192
|
var port2 = /* @__PURE__ */ (() => {
|
|
1192
1193
|
const { port1, port2: port22 } = new MessageChannel();
|
|
1193
1194
|
port1.onmessage = () => {
|
|
1194
1195
|
isScheduled = false;
|
|
1195
|
-
|
|
1196
|
+
if (true) {
|
|
1197
|
+
task.run(run);
|
|
1198
|
+
task = void 0;
|
|
1199
|
+
} else {
|
|
1200
|
+
run();
|
|
1201
|
+
}
|
|
1196
1202
|
};
|
|
1197
1203
|
return port22;
|
|
1198
1204
|
})();
|
|
1199
1205
|
var isScheduled;
|
|
1200
1206
|
function schedule() {
|
|
1201
1207
|
if (!isScheduled) {
|
|
1208
|
+
if (true) {
|
|
1209
|
+
task = console.createTask?.("queue") || {
|
|
1210
|
+
run(fn) {
|
|
1211
|
+
fn();
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1202
1215
|
isScheduled = true;
|
|
1203
1216
|
queueMicrotask(flushAndWaitFrame);
|
|
1204
1217
|
}
|
|
1205
1218
|
}
|
|
1206
1219
|
function flushAndWaitFrame() {
|
|
1207
|
-
|
|
1220
|
+
if (true) {
|
|
1221
|
+
task.run(run);
|
|
1222
|
+
} else {
|
|
1223
|
+
run();
|
|
1224
|
+
}
|
|
1208
1225
|
requestAnimationFrame(triggerMacroTask);
|
|
1209
1226
|
}
|
|
1210
1227
|
function triggerMacroTask() {
|
package/dist/dom.js
CHANGED
|
@@ -620,7 +620,7 @@ function setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer) {
|
|
|
620
620
|
}
|
|
621
621
|
prevScope && destroyScope(prevScope);
|
|
622
622
|
}
|
|
623
|
-
var emptyMarkerMap =
|
|
623
|
+
var emptyMarkerMap = /* @__PURE__ */ new Map([[Symbol(), getEmptyScope(void 0)]]), emptyMarkerArray = [
|
|
624
624
|
/* @__PURE__ */ getEmptyScope(void 0)
|
|
625
625
|
], emptyMap = /* @__PURE__ */ new Map(), emptyArray = [];
|
|
626
626
|
function loopOf(nodeAccessor, renderer) {
|
package/dist/dom.mjs
CHANGED
|
@@ -548,7 +548,7 @@ function setConditionalRendererOnlyChild(scope, nodeAccessor, newRenderer) {
|
|
|
548
548
|
}
|
|
549
549
|
prevScope && destroyScope(prevScope);
|
|
550
550
|
}
|
|
551
|
-
var emptyMarkerMap =
|
|
551
|
+
var emptyMarkerMap = /* @__PURE__ */ new Map([[Symbol(), getEmptyScope(void 0)]]), emptyMarkerArray = [
|
|
552
552
|
/* @__PURE__ */ getEmptyScope(void 0)
|
|
553
553
|
], emptyMap = /* @__PURE__ */ new Map(), emptyArray = [];
|
|
554
554
|
function loopOf(nodeAccessor, renderer) {
|