Fix typescript 1.6 compile errors.

- Remove unknown properties in object literals.
- Don't use module-level `delete` statements.
This commit is contained in:
Hristo Deshev
2015-09-18 11:20:17 +03:00
parent b7c87bba9c
commit 9fbcf5f143
16 changed files with 72 additions and 43 deletions

View File

@@ -2,6 +2,10 @@
global.moduleMerge(common, exports);
interface Owned {
owner: any;
}
export class Button extends common.Button {
private _android: android.widget.Button;
private _isPressed: boolean;
@@ -22,7 +26,8 @@ export class Button extends common.Button {
this._android = new android.widget.Button(this._context);
this._android.setOnClickListener(new android.view.View.OnClickListener({
this._android.setOnClickListener(new android.view.View.OnClickListener(
<Owned & android.view.View.IOnClickListener>{
get owner() {
return that.get();
},
@@ -34,4 +39,4 @@ export class Button extends common.Button {
}
}));
}
}
}