Skip to content

Commit bfa5a8d

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Resolved variable name clash (#1568)
There is another variable named script in the autoloader.
1 parent e529edd commit bfa5a8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/autoloader/prism-autoloader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param {function=} success
3333
* @param {function=} error
3434
*/
35-
var script = function (src, success, error) {
35+
var addScript = function (src, success, error) {
3636
var s = document.createElement('script');
3737
s.src = src;
3838
s.async = true;
@@ -155,7 +155,7 @@
155155
} else if (force || !data.loading) {
156156
data.loading = true;
157157
var src = getLanguagePath(lang);
158-
script(src, function () {
158+
addScript(src, function () {
159159
data.loading = false;
160160
languageSuccess(lang);
161161

plugins/autoloader/prism-autoloader.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)