@lmjs/core 2.1.24 → 2.2.1
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/build/plugins-registry.js +2 -1
- package/dist/lumenjs-core.js +66 -7
- package/package.json +1 -1
- package/src/_re.js +159 -34
- package/src/dom-shim.js +432 -39
- package/src/lstnrs.js +21 -5
- package/src/ws.js +15 -27
- package/vendor/reconnecting-websocket.js +525 -6
package/src/ws.js
CHANGED
|
@@ -992,16 +992,12 @@ function syncViewFiles() {
|
|
|
992
992
|
} else if (nodes[0] == n) {
|
|
993
993
|
renderView(nodes[0], null, View.props ?? {});
|
|
994
994
|
} else {
|
|
995
|
-
//
|
|
996
|
-
//
|
|
997
|
-
//
|
|
998
|
-
//
|
|
999
|
-
//
|
|
1000
|
-
|
|
1001
|
-
// every subview on every unrelated render
|
|
1002
|
-
// pass) or a hot-reloaded subview file
|
|
1003
|
-
// would never actually refresh.
|
|
1004
|
-
renderView(n, true, {}, 'views', undefined, undefined, true);
|
|
995
|
+
// A subview can be nested at any depth (a
|
|
996
|
+
// footer inside a guide sub-page), so
|
|
997
|
+
// searching one views[] list misses most of
|
|
998
|
+
// them. Re-rendering the current page mounts
|
|
999
|
+
// every subview fresh from the updated files.
|
|
1000
|
+
renderView(nodes[0], null, View.props ?? {});
|
|
1005
1001
|
}
|
|
1006
1002
|
}
|
|
1007
1003
|
}
|
|
@@ -1036,23 +1032,15 @@ function syncViewFiles() {
|
|
|
1036
1032
|
}
|
|
1037
1033
|
}
|
|
1038
1034
|
}
|
|
1039
|
-
//
|
|
1040
|
-
//
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
// .join("");
|
|
1049
|
-
// $('[tpl="' + n + '"]')
|
|
1050
|
-
// .removeData("_status")
|
|
1051
|
-
// .removeData("_re");
|
|
1052
|
-
// globalWatch();
|
|
1053
|
-
// }
|
|
1054
|
-
// }
|
|
1055
|
-
// }
|
|
1035
|
+
// tpls/comps render inline in their host views, so any
|
|
1036
|
+
// template change means re-rendering the current page.
|
|
1037
|
+
let tpls = _files["tpls"] || {};
|
|
1038
|
+
let tplsChanged = !deepCompare(clone(_ovcD['tpls'] || {}), clone(tpls));
|
|
1039
|
+
if (tplsChanged) {
|
|
1040
|
+
_ovcD['tpls'] = tpls;
|
|
1041
|
+
let nodes = getURLNodes();
|
|
1042
|
+
renderView(nodes[0], null, View.props ?? {});
|
|
1043
|
+
}
|
|
1056
1044
|
}
|
|
1057
1045
|
});
|
|
1058
1046
|
}
|