cradova 3.1.8 → 3.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -159,6 +159,7 @@ var Ref = class {
159
159
  this.stash = data2;
160
160
  }
161
161
  if (isNode(html)) {
162
+ this.current_id = SNRU(location.href);
162
163
  this.reference._appendDomForce(
163
164
  this.current_id,
164
165
  html
@@ -172,6 +173,7 @@ var Ref = class {
172
173
  return html;
173
174
  }
174
175
  instance() {
176
+ this.current_id = SNRU(location.href);
175
177
  return this.reference[this.current_id];
176
178
  }
177
179
  _setExtra(Extra) {
@@ -208,10 +210,10 @@ var Ref = class {
208
210
  * @returns
209
211
  */
210
212
  updateState(data2, stash) {
211
- this.current_id = SNRU(location.href);
212
213
  if (!this.rendered) {
213
214
  this.effectuate = () => {
214
215
  if (this.published) {
216
+ this.current_id = SNRU(location.href);
215
217
  this.Activate(data2);
216
218
  }
217
219
  };
@@ -756,7 +758,6 @@ RouterBox["routes"] = {};
756
758
  RouterBox["pageevents"] = [];
757
759
  RouterBox["paused"] = false;
758
760
  RouterBox["start_pageevents"] = async function(url) {
759
- !CradovaEvent.dispatchEvent("onTransition");
760
761
  setTimeout(() => {
761
762
  for (let ci = 0; ci < RouterBox["pageevents"].length; ci++) {
762
763
  RouterBox["pageevents"][ci](url);
@@ -853,6 +854,7 @@ RouterBox.router = async function(_e, _force) {
853
854
  template: route._html
854
855
  });
855
856
  RouterBox.routes[url] = route;
857
+ CradovaEvent.dispatchEvent("onTransition");
856
858
  }
857
859
  if (params) {
858
860
  RouterBox.params.params = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.1.8",
3
+ "version": "3.2.1",
4
4
  "description": "Web framework for building web apps and PWAs",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",