elegance-js 2.0.15 → 2.0.17

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.
@@ -244,7 +244,7 @@ var initPageData = (data, currentPage2, previousPage, bindLevel) => {
244
244
  data.stateManager = state;
245
245
  }
246
246
  for (const subject of state.subjects) {
247
- subject.observers = /* @__PURE__ */ new Map();
247
+ if (!subject.observers) subject.observers = /* @__PURE__ */ new Map();
248
248
  }
249
249
  for (const ooa of data.ooa || []) {
250
250
  const els = doc.querySelectorAll(`[key="${ooa.key}"]`);
@@ -714,7 +714,7 @@ var buildLayouts = async () => {
714
714
  }
715
715
  try {
716
716
  const builtLayout = await buildLayout(filePath, directory);
717
- builtLayouts.set(directory, builtLayout);
717
+ builtLayouts.set(filePath, builtLayout);
718
718
  } catch (e) {
719
719
  console.error(e);
720
720
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {