set addOnRenderFinishedCallback to private
This commit is contained in:
parent
b59567ccfb
commit
7c2ba30bd5
1
doric-js/index.d.ts
vendored
1
doric-js/index.d.ts
vendored
@ -299,7 +299,6 @@ declare module 'doric/lib/src/ui/panel' {
|
||||
clearHeadViews(type: string): void;
|
||||
getRootView(): Root;
|
||||
getInitData(): object | undefined;
|
||||
onRenderFinished(): void;
|
||||
addOnRenderFinishedCallback(cb: () => void): void;
|
||||
}
|
||||
}
|
||||
|
2
doric-js/lib/src/ui/panel.d.ts
vendored
2
doric-js/lib/src/ui/panel.d.ts
vendored
@ -30,6 +30,6 @@ export declare abstract class Panel {
|
||||
private nativeRender;
|
||||
private hookBeforeNativeCall;
|
||||
private hookAfterNativeCall;
|
||||
onRenderFinished(): void;
|
||||
private onRenderFinished;
|
||||
addOnRenderFinishedCallback(cb: () => void): void;
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ export abstract class Panel {
|
||||
this.onRenderFinished()
|
||||
})
|
||||
}
|
||||
onRenderFinished() {
|
||||
private onRenderFinished() {
|
||||
this.onRenderFinishedCallback.forEach(e => {
|
||||
e()
|
||||
})
|
||||
|
Reference in New Issue
Block a user