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

Deprecate method names before removing them #1451

Closed
dmlap opened this issue Aug 26, 2014 · 4 comments
Closed

Deprecate method names before removing them #1451

dmlap opened this issue Aug 26, 2014 · 4 comments

Comments

@dmlap
Copy link
Member

dmlap commented Aug 26, 2014

In 4.6.0, requestFullScreen() was renamed to requestFullscreen(). According to semver, removal of the old form probably should have waiting until version 5.0. In the future, I propose that we keep the old method name, log a warning about deprecation, and delegate to the "modernized" equivalent.

@heff
Copy link
Member

heff commented Aug 26, 2014

That was the intention (per the docs) but apparently it wasn't handled correctly in code.

Is that enough to close this issue, or do you want to see that implemented for requestFullscreen? I'm fine either way.

@heff heff added bug labels Aug 26, 2014
@dmlap
Copy link
Member Author

dmlap commented Aug 27, 2014

I missed the docs and thought the removal was intentional. I'm not sure why but it looks like requestFullScreen() is another victim of aggressive minification: http://jsbin.com/lalahaliyoda/1/edit. I see it in the externs though. Any idea what happened here?

@heff
Copy link
Member

heff commented Sep 5, 2014

@dmlap so the issue was the difference between exports and externs. Externs don't guarantee the function will exist in the final compile. Closure may still decide to remove the function if it doesn't look like it's being used internally anywhere.

@dmlap
Copy link
Member Author

dmlap commented Sep 8, 2014

Ugh. Ok, I'll keep that in mind for the future, thanks.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants