pome-ui 2.0.0-preview61 → 2.0.0-preview62

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": "pome-ui",
3
- "version": "2.0.0-preview61",
3
+ "version": "2.0.0-preview62",
4
4
  "description": "Front-end MVC library",
5
5
  "main": "pome-ui.js",
6
6
  "bin": {
package/pome-ui.dev.js CHANGED
@@ -18887,6 +18887,16 @@ function build(options, exports) {
18887
18887
  ret.component(com.name, com.options);
18888
18888
  }
18889
18889
 
18890
+ // Inherit parent's registered components
18891
+ if (parent && parent.$ && parent.$.appContext && parent.$.appContext.components) {
18892
+ var parentComps = parent.$.appContext.components;
18893
+ for (var pName in parentComps) {
18894
+ if (!ret._context.components[pName]) {
18895
+ ret.component(pName, parentComps[pName]);
18896
+ }
18897
+ }
18898
+ }
18899
+
18890
18900
  var originalMountFunc = ret.mount || function () { };
18891
18901
  ret.mount = function (el) {
18892
18902
  ret.proxy = originalMountFunc(el);