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
+2 -4
View File
@@ -59,11 +59,9 @@ export class ScreenOrientation {
@Cordova({ sync: true })
static unlockOrientation(): void { }
/*
/**
* Get the current orientation of the device.
*/
@CordovaProperty
static get orientation() {
return window.screen.orientation;
}
static orientation: string;
}