Skip to content
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

Merged
merged 4 commits into from
Sep 5, 2022

Conversation

Tolhos
Copy link
Contributor

@Tolhos Tolhos commented Sep 4, 2022

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

  • Adds a new document
  • Rewrites (or significantly expands) a document
  • Fixes a typo, bug, or other error

The deprecated Screen.lockOrientation() method has been replaced with the ScreenOrientation.lock() method.
@Tolhos Tolhos requested a review from a team as a code owner September 4, 2022 19:57
@Tolhos Tolhos requested review from sideshowbarker and removed request for a team September 4, 2022 19:57
@github-actions github-actions bot added the Content:WebAPI Web API docs label Sep 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2022

Preview URLs

Flaws

None! 🎉

External URLs

URL: /en-US/docs/Web/API/CSS_Object_Model/Managing_screen_orientation
Title: Managing screen orientation
on GitHub

No new external URLs

(this comment was updated 2022-09-05 02:37:29.979911)

@sideshowbarker sideshowbarker merged commit d59f163 into mdn:main Sep 5, 2022
@sideshowbarker
Copy link
Member

Thanks much, and congrats on landing your first docs change here — welcome aboard 🎉

goshdarnheck pushed a commit to goshdarnheck/content that referenced this pull request Sep 7, 2022

```js
screen.lockOrientation('landscape');
{{domxref("ScreenOrientation.lock()", "screen.orientation.lock()")}} ;
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants