(oldParent: View)
| 75 | } |
| 76 | |
| 77 | public _parentChanged(oldParent: View): void { |
| 78 | const newParent = this.parent; |
| 79 | if (newParent && !isFrame(newParent)) { |
| 80 | throw new Error(`Page can only be nested inside Frame. New parent: ${newParent}`); |
| 81 | } |
| 82 | |
| 83 | super._parentChanged(oldParent); |
| 84 | } |
| 85 | |
| 86 | public _addChildFromBuilder(name: string, value: any) { |
| 87 | if (value instanceof ActionBar) { |
no test coverage detected