mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Moved delegate handling to onLoaded / onUnloaded methods and reworked the WebView tests.
This commit is contained in:
@@ -50,9 +50,18 @@ export class TextView extends common.TextView {
|
||||
}
|
||||
|
||||
this._delegate = UITextViewDelegateImpl.new().initWithOwner(this);
|
||||
}
|
||||
|
||||
public onLoaded() {
|
||||
super.onLoaded();
|
||||
this._ios.delegate = this._delegate;
|
||||
}
|
||||
|
||||
public onUnloaded() {
|
||||
this._ios.delegate = null;
|
||||
super.onUnloaded();
|
||||
}
|
||||
|
||||
get ios(): UITextView {
|
||||
return this._ios;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user