Moved delegate handling to onLoaded / onUnloaded methods and reworked the WebView tests.

This commit is contained in:
Rossen Hristov
2015-04-03 12:56:23 +03:00
parent 956e14eba3
commit 38bc482359
8 changed files with 147 additions and 48 deletions

View File

@@ -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;
}