Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Restoring the brackets alias intitialization in appshell_extensions.js #630

Merged
merged 3 commits into from
Feb 1, 2018

Conversation

nethip
Copy link
Contributor

@nethip nethip commented Feb 1, 2018

This is still going to be required as brackets.app.language was getting accessed even before it was getting initialized in global.js.

I have unit tested on Win, Linux and MAC with this change and the change seems to be working fine. Also I tested by hard routing the language to "fr", and Brackets is now correctly able to take the language, defined by brackets.app.language.

Thanks @swmitra for debugging this. Could you please review this?
@abhijitapte It would be great if you can review this as well.

…s. This is still going to be required as brackets.app.language was getting accessed even before it was getting initialized in global.js.
@swmitra
Copy link
Collaborator

swmitra commented Feb 1, 2018

@nethip A very minor change just for better readability purpose.
If we can define the alias "brackets" upfront while defining "appshell" and then assign the initialised "appshell" placeholder to the alias before going through the self executing member initialisation block.

Copy link
Collaborator

@swmitra swmitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job as usual 👍 💯
Thanks a ton for fixing this in no time!

@nethip
Copy link
Contributor Author

nethip commented Feb 1, 2018

@swmitra Thanks for reviewing this! I will update the PR with your review comments.

@swmitra swmitra merged commit 8ee733b into master Feb 1, 2018
nethip pushed a commit that referenced this pull request Feb 1, 2018
Restoring the brackets alias intitialization in appshell_extensions.js
nethip added a commit that referenced this pull request Feb 1, 2018
Restoring the brackets alias intitialization in appshell_extensions.js
@ficristo ficristo deleted the nethip/FixLangSwitchIssue branch February 8, 2018 19:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants