mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
rename:
_createNativeView to createNativeView; _initNativeView to initNativeView _disposeNativeView to disposeNativeView _resetNativeView to resetNativeView
This commit is contained in:
@@ -88,7 +88,7 @@ function initializeWebViewClient(): void {
|
||||
export class WebView extends WebViewBase {
|
||||
nativeView: android.webkit.WebView;
|
||||
|
||||
public _createNativeView() {
|
||||
public createNativeView() {
|
||||
initializeWebViewClient();
|
||||
|
||||
const nativeView = new android.webkit.WebView(this._context);
|
||||
@@ -100,18 +100,18 @@ export class WebView extends WebViewBase {
|
||||
return nativeView;
|
||||
}
|
||||
|
||||
public _initNativeView(): void {
|
||||
public initNativeView(): void {
|
||||
(<any>this.nativeView).client.owner = this;
|
||||
}
|
||||
|
||||
public _resetNativeView() {
|
||||
public resetNativeView() {
|
||||
const nativeView = this.nativeView;
|
||||
if (nativeView) {
|
||||
nativeView.destroy();
|
||||
}
|
||||
|
||||
(<any>nativeView).client.owner = null;
|
||||
super._resetNativeView();
|
||||
super.resetNativeView();
|
||||
}
|
||||
|
||||
public _loadFileOrResource(path: string, content: string) {
|
||||
|
||||
Reference in New Issue
Block a user