Github user purplecabbage commented on a diff in the pull request: https://github.com/apache/cordova-plugin-screen-orientation/pull/11#discussion_r105280210 --- Diff: www/screenorientation.js --- @@ -54,7 +54,7 @@ screenObject.lock = function(orientation) { var promiseLock; var p = new Promise(function(resolve, reject) { - if (screenObject.nativeLock != null) { + if (screenObject.nativeLock !== null) { --- End diff -- if you are gonna be strict, then you would have to test for undefined also
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org