marko 5.35.3 → 5.35.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,18 +53,6 @@ function register(type, def) {
53
53
  function addPendingDef(def, type, meta, host, runtimeId) {
54
54
  if (!pendingDefs) {
55
55
  pendingDefs = {};
56
-
57
- // eslint-disable-next-line no-constant-condition
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
56
  }
69
57
  (pendingDefs[type] = pendingDefs[type] || []).push([
70
58
  def,
@@ -499,7 +487,6 @@ function initServerRendered(renderedComponents, host) {
499
487
  var typeName = meta._B_[componentDef[1]];
500
488
 
501
489
  return registered[typeName] ||
502
- document.readyState === "complete" ||
503
490
  req.e(typeName) ?
504
491
  tryHydrateComponent(componentDef, meta, host, runtimeId) :
505
492
  addPendingDef(componentDef, typeName, meta, host, runtimeId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.35.3",
3
+ "version": "5.35.4",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -53,18 +53,6 @@ function register(type, def) {
53
53
  function addPendingDef(def, type, meta, host, runtimeId) {
54
54
  if (!pendingDefs) {
55
55
  pendingDefs = {};
56
-
57
- // eslint-disable-next-line no-constant-condition
58
- if ("MARKO_DEBUG") {
59
- document.addEventListener("load", function () {
60
- var pendingComponentIds = Object.keys(pendingDefs);
61
- if (pendingComponentIds.length) {
62
- complain(
63
- "Marko templates were never loaded for: " + pendingComponentIds
64
- );
65
- }
66
- });
67
- }
68
56
  }
69
57
  (pendingDefs[type] = pendingDefs[type] || []).push([
70
58
  def,
@@ -499,7 +487,6 @@ function initServerRendered(renderedComponents, host) {
499
487
  var typeName = meta.___types[componentDef[1]];
500
488
 
501
489
  return registered[typeName] ||
502
- document.readyState === "complete" ||
503
490
  req.e(typeName)
504
491
  ? tryHydrateComponent(componentDef, meta, host, runtimeId)
505
492
  : addPendingDef(componentDef, typeName, meta, host, runtimeId);