fix(plugin): revert changes to support stable version (#1116)

fix #1001
This commit is contained in:
JiaLiPassion
2017-03-02 10:10:05 +09:00
committed by Ibby Hadeed
parent 97cf22eedb
commit 104532e1d7
+3 -4
View File
@@ -48,11 +48,10 @@ export class ScreenOrientation {
/**
* Lock the orientation to the passed value.
* See below for accepted values
* @param orientation {string} The orientation which should be locked. Accepted values see table below.
* @returns {Promise<any>} returns a promise that resolves when the screen orientation is locked, and rejects when an error occurs.
* @param orientation {string} The orientation which should be locked. Accepted values see table above.
*/
@Cordova({ otherPromise: true })
static lockOrientation(orientation: string): Promise<string> { return; }
@Cordova({ sync: true })
static lockOrientation(orientation: string): void { }
/**
* Unlock and allow all orientations.