summaryrefslogtreecommitdiff
path: root/plugins/com.phonegap.plugins.OrientationLock/www
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/com.phonegap.plugins.OrientationLock/www')
-rw-r--r--plugins/com.phonegap.plugins.OrientationLock/www/orientationLock.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/com.phonegap.plugins.OrientationLock/www/orientationLock.js b/plugins/com.phonegap.plugins.OrientationLock/www/orientationLock.js
deleted file mode 100644
index 099a5359..00000000
--- a/plugins/com.phonegap.plugins.OrientationLock/www/orientationLock.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var OrientationLock = function() {}
-
-OrientationLock.prototype.lock = function(orientation, success, fail) {
- return cordova.exec(success, fail, "OrientationLock", "lock", [orientation])
-}
-
-OrientationLock.prototype.unlock = function(success, fail) {
- return cordova.exec(success, fail, "OrientationLock", "unlock", [])
-}
-
-if ( ! window.plugins ) {
- window.plugins = {}
-}
-if ( ! window.plugins.orientationLock ) {
- window.plugins.orientationLock = new OrientationLock()
-}
-
-module.exports = OrientationLock