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-4915 templates: Improve JS string handling in templates
Backported from MDL-53667 to make cherry-picking easier across branches. The native String.replace method in extremely slow when we are dealing with a large string and large quantity of strings to replace. This new solution walks through the string looking for placeholders to replace.
- Loading branch information
Frederic Massart
authored and
Damyon Wiese
committed
Jul 19, 2016
1 parent
2772b59
commit d2b890c
Showing
2 changed files
with
90 additions
and
34 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