diff --git a/phonegap/phonegap-tests.ts b/phonegap/phonegap-tests.ts index 78b45609b..1eaff6040 100644 --- a/phonegap/phonegap-tests.ts +++ b/phonegap/phonegap-tests.ts @@ -318,7 +318,7 @@ function test_file() { var reader = new FileReader(); reader.onloadend = function (evt) { console.log("Read as data URL"); - console.log(evt.target.result); + console.log((evt.target).result); }; reader.readAsDataURL(file); } @@ -326,7 +326,7 @@ function test_file() { var reader = new FileReader(); reader.onloadend = function (evt) { console.log("Read as text"); - console.log(evt.target.result); + console.log((evt.target).result); }; reader.readAsText(file); } diff --git a/phonegap/phonegap.d.ts b/phonegap/phonegap.d.ts index 6e873163b..f23b473a9 100644 --- a/phonegap/phonegap.d.ts +++ b/phonegap/phonegap.d.ts @@ -3,10 +3,6 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped -interface EventTarget { - result: any; -} - interface GeolocationError { code: number; message: string; @@ -54,7 +50,7 @@ interface CameraOptions { mediaType?: number; correctOrientation?: boolean; saveToPhotoAlbum?: boolean; - popoverOptions?: number; + popoverOptions?: CameraPopoverOptions; } interface CameraPictureSourceTypeObject {