neo.mjs 4.0.73 → 4.0.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.0.73",
3
+ "version": "4.0.74",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -33,7 +33,12 @@ class Base extends CoreBase {
33
33
  construct(config) {
34
34
  super.construct(config);
35
35
 
36
- HashHistory.on('change', this.onHashChange, this);
36
+ let me = this,
37
+ currentHash = HashHistory.first();
38
+
39
+ currentHash && me.onHashChange(currentHash, null);
40
+
41
+ HashHistory.on('change', me.onHashChange, me);
37
42
  }
38
43
 
39
44
  /**
@@ -22,11 +22,6 @@ class HashHistory extends Base {
22
22
  * @protected
23
23
  */
24
24
  className: 'Neo.util.HashHistory',
25
- /**
26
- * @member {String} ntype='hash-history'
27
- * @protected
28
- */
29
- ntype: 'hash-history',
30
25
  /**
31
26
  * @member {Boolean} singleton=true
32
27
  * @protected
@@ -71,10 +66,10 @@ class HashHistory extends Base {
71
66
  stack.unshift(data);
72
67
 
73
68
  if (stack.length > me.maxItems) {
74
- stack.length = me.maxItems;
69
+ stack.pop();
75
70
  }
76
71
 
77
- me.fire('change', data, stack[1]);
72
+ me.fire('change', data, stack[1] || null);
78
73
  }
79
74
  }
80
75