Skip to content

Commit 7b04974

Browse files
authored
Merge pull request #2 from danirock99/master
Updated in order to be used with NS7
2 parents 6771f8f + f3b213e commit 7b04974

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/paypal-checkout.android.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import * as app from "tns-core-modules/application";
44
declare const com: any;
55

66
export class PaypalCheckout extends Common {
7-
7+
constructor(){
8+
super();
9+
}
810
paypalRequest(options: PaypalOptions): Promise<any> {
911
return new Promise(function (resolve, reject) {
1012
let braintree = null;

src/paypal-checkout.common.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { Observable } from 'tns-core-modules/data/observable';
22

3-
export class Common extends Observable { }
3+
export class Common extends Observable {
4+
constructor(){
5+
super();
6+
}
7+
}

src/paypal-checkout.ios.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { Common } from './paypal-checkout.common';
33
declare const BTAPIClient: any, BTPayPalDriver: any, BTPayPalRequest: any;
44

55
export class PaypalCheckout extends Common {
6-
6+
constructor(){
7+
super();
8+
}
79
paypalRequest(options: PaypalOptions): Promise<any> {
810
return new Promise(function (resolve, reject) {
911
var context = this;

src/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es6",
44
"module": "commonjs",
55
"declaration": true,
66
"removeComments": true,

0 commit comments

Comments
 (0)