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

Autoloader: Fixed data-dependencies and extensions #2326

Merged
merged 3 commits into from Jun 28, 2020

Conversation

RunDevelopment
Copy link
Member

This fixes #1994. This fixes #1976.

It does so by using a new method to check whether a language is already loaded. It now checks whether the language and data-dependencies have been loaded instead of checking whether the current grammar is defined.

@RunDevelopment
Copy link
Member Author

I should also point out that this fixes the bug that blocks #1936.

@RunDevelopment RunDevelopment merged commit 1654b25 into PrismJS:master Jun 28, 2020
@RunDevelopment RunDevelopment deleted the autoloader-fixes branch June 28, 2020 00:03

if (!deps.every(isLoaded)) {
// the language or some dependencies aren't loaded
loadLanguages(dependencies, function () {
Copy link
Member Author

Choose a reason for hiding this comment

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

Guess who meant to write deps and not dependencies? Fixed in #2449.

quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants