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

Replace deprecated Lang module #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fmuellner
Copy link

It is deprecated in favor of ES 2015 features:

  • Lang.bind() can be replaced with arrow functions or Function.prototype.bind()
  • Lang.Class can be replaced with standard classes

Lang.bind() has been deprecated for a long time in favor of
arrow functions and Function.prototype.bind(), which were
standardized in 2015.
Classes were standardized in 2015, and there is no reason to not
use them over gjs' custom Lang.Class framework (which has been
deprecated).
@fmuellner fmuellner mentioned this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant