From d0f38c48fc5c31f2186cd6257d4e68ef3bfba558 Mon Sep 17 00:00:00 2001 From: Grant Benvenuti Date: Sun, 13 Jul 2014 16:50:16 +1000 Subject: [PATCH] Added missing orientation types to README --- README.md | 6 ++++++ plugin.xml | 2 +- www/screenorientation.js | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c49334c..3f423d4 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ The orientation is in the primary landscape mode. __landscape-secondary__ The orientation is in the secondary landscape mode. +__portrait__ +The orientation is either portrait-primary or portrait-secondary (sensor). + +__landscape__ +The orientation is either landscape-primary or landscape-secondary (sensor). + ##Usage screen.lockOrientation('landscape'); diff --git a/plugin.xml b/plugin.xml index 47d4c04..0b8ec68 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="1.0.1"> YoikScreenOrientation Yoik Screen Orientation Plugin diff --git a/www/screenorientation.js b/www/screenorientation.js index a53af30..98cc1f5 100644 --- a/www/screenorientation.js +++ b/www/screenorientation.js @@ -35,6 +35,7 @@ var argscheck = require('cordova/argscheck'), 'portrait', // The orientation is either portrait-primary or portrait-secondary. 'landscape' + // The orientation is either landscape-primary or landscape-secondary. ], currOrientation = 'unlocked';