You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by to...@apache.org on 2016/05/23 13:42:24 UTC
[26/50] cordova-plugin-screen-orientation git commit: add
screen.orentation vairable update on lockOrientation()
add screen.orentation vairable update on lockOrientation()
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/1f43b5ac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/1f43b5ac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/1f43b5ac
Branch: refs/heads/master
Commit: 1f43b5ac9c1f5035557e4f0efefacac41b92fa45
Parents: dda5580
Author: Johan Eliasson <jo...@allbinary.se>
Authored: Mon Jul 20 15:04:18 2015 +0200
Committer: Johan Eliasson <jo...@allbinary.se>
Committed: Mon Jul 20 15:04:18 2015 +0200
----------------------------------------------------------------------
www/screenorientation.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/1f43b5ac/www/screenorientation.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.js b/www/screenorientation.js
index 7c74439..64c682b 100644
--- a/www/screenorientation.js
+++ b/www/screenorientation.js
@@ -56,11 +56,13 @@ function addScreenOrientationApi(obj) {
return;
}
screenOrientation.currOrientation = orientation;
+ screen.orientation = screenOrientation.currOrientation;
screenOrientation.setOrientation(orientation);
};
obj.unlockOrientation = function() {
screenOrientation.currOrientation = 'unlocked';
+ screen.orientation = screenOrientation.currOrientation;
screenOrientation.setOrientation('unlocked');
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org