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;
|
clearHeadViews(type: string): void;
|
||||||
getRootView(): Root;
|
getRootView(): Root;
|
||||||
getInitData(): object | undefined;
|
getInitData(): object | undefined;
|
||||||
onRenderFinished(): void;
|
|
||||||
addOnRenderFinishedCallback(cb: () => void): 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 nativeRender;
|
||||||
private hookBeforeNativeCall;
|
private hookBeforeNativeCall;
|
||||||
private hookAfterNativeCall;
|
private hookAfterNativeCall;
|
||||||
onRenderFinished(): void;
|
private onRenderFinished;
|
||||||
addOnRenderFinishedCallback(cb: () => void): void;
|
addOnRenderFinishedCallback(cb: () => void): void;
|
||||||
}
|
}
|
||||||
|
@ -212,7 +212,7 @@ export abstract class Panel {
|
|||||||
this.onRenderFinished()
|
this.onRenderFinished()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onRenderFinished() {
|
private onRenderFinished() {
|
||||||
this.onRenderFinishedCallback.forEach(e => {
|
this.onRenderFinishedCallback.forEach(e => {
|
||||||
e()
|
e()
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user