-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated methods from managing_screen_orientation #20295
Conversation
The deprecated Screen.lockOrientation() method has been replaced with the ScreenOrientation.lock() method.
Preview URLsFlawsNone! 🎉 External URLsURL: No new external URLs (this comment was updated 2022-09-05 02:37:29.979911) |
files/en-us/web/api/css_object_model/managing_screen_orientation/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/css_object_model/managing_screen_orientation/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/css_object_model/managing_screen_orientation/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/css_object_model/managing_screen_orientation/index.md
Show resolved
Hide resolved
files/en-us/web/api/css_object_model/managing_screen_orientation/index.md
Show resolved
Hide resolved
Thanks much, and congrats on landing your first docs change here — welcome aboard 🎉 |
Co-authored-by: Michael[tm] Smith <mike@w3.org>
|
||
```js | ||
screen.lockOrientation('landscape'); | ||
{{domxref("ScreenOrientation.lock()", "screen.orientation.lock()")}} ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there! Just an after-review note, macros shouldn't be used inside of codeblocks like this -- the domxref
in the above paragraph is sufficient to link to this method.
The deprecated Screen.lockOrientation() method has been replaced with the ScreenOrientation.lock() method.
Summary
Deprecated Screen.lockOrientation() method has been replaced with Screen.unlockOrientation() method.
Motivation
Screen.lockOrientation() method is no longer used hence the article is misleading. This change will improve the article quality.
Supporting details
Related issues
Metadata