mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-54915 core: JS Blocks must not used shared variables
The JS blocks in a template must _not_ use a shared variable as they can be executed asynchronously and complete in any order. Instead it is stored in the only local variable available - the current context. Since the context can be passed in from elsewhere, we namespace it to reduce the chance of collission.
- Loading branch information
1 parent
47806ea
commit 36a9aba
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters