chore(): optimize CordovaProperty and InstanceProperty decorators (#635)

* chore(): optimize InstanceProperty wrapper

* chore(): optimize CordovaProperty wrapper

* tslint'

* fix decorators
This commit is contained in:
Ibrahim Hadeed
2016-12-04 11:42:30 -05:00
committed by GitHub
parent 717c1438c4
commit abc90f2e6a
10 changed files with 87 additions and 88 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export class Network {
* Return the network connection type
*/
@CordovaProperty
static get connection(): string { return navigator.connection.type; }
static connection: string;
/**
* Get notified when the device goes offline