cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [8/9] cordova-plugin-screen-orientation git commit: Updated Readme with new methods for screen object
Date Wed, 22 Feb 2017 03:26:51 GMT
Updated Readme with new methods for screen object


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/9fca54ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/9fca54ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/9fca54ea

Branch: refs/heads/master
Commit: 9fca54ea48ba2528dcf1d69b623f0724fc7c40e8
Parents: 4d6d8b4
Author: maverickmishra <vishalmishra0907@gmail.com>
Authored: Tue Feb 7 15:37:47 2017 -0800
Committer: maverickmishra <vishalmishra0907@gmail.com>
Committed: Mon Feb 13 16:21:00 2017 -0800

----------------------------------------------------------------------
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/9fca54ea/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 770d399..424389b 100644
--- a/README.md
+++ b/README.md
@@ -29,10 +29,10 @@ The plugin adds the following to the screen object (`window.screen`):
 
 ```js
 // lock the device orientation
-.lockOrientation('portrait')
+.orientation.lock('portrait')
 
 // unlock the orientation
-.unlockOrientation()
+.orientation.unlock()
 
 // current orientation
 .orientation
@@ -72,10 +72,10 @@ cordova plugin add cordova-plugin-screen-orientation
 
 ```js
 // set to either landscape
-screen.lockOrientation('landscape');
+screen.orientation.lock('landscape');
 
 // allow user rotate
-screen.unlockOrientation();
+screen.orientation.unlock();
 
 // access current orientation
 console.log('Orientation is ' + screen.orientation);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message