mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: remove critical circular dependencies (#8114)
* chore: remove critical circular dependencies * chore: fix tslint errors * chore: remove platform specific types from interfaces * chore: update unit tests polyfills * fix: incorrect null check * chore: update api.md file * test: improve test case * chore: apply comments * test: avoid page style leaks in tests
This commit is contained in:
committed by
Alexander Vakrilov
parent
5b647bd809
commit
0ffc790d82
@@ -439,6 +439,11 @@ export abstract class ViewBase extends Observable {
|
||||
*/
|
||||
_isStyleScopeHost: boolean;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
public _layoutParent(): void;
|
||||
|
||||
/**
|
||||
* Determines the depth of suspended updates.
|
||||
* When the value is 0 the current property updates are not batched nor scoped and must be immediately applied.
|
||||
|
||||
@@ -377,6 +377,12 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
this._emit("unloaded");
|
||||
}
|
||||
|
||||
public _layoutParent() {
|
||||
if (this.parent) {
|
||||
this.parent._layoutParent();
|
||||
}
|
||||
}
|
||||
|
||||
public _suspendNativeUpdates(type: SuspendType): void {
|
||||
if (type) {
|
||||
this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount | type;
|
||||
|
||||
Reference in New Issue
Block a user