Skip to content

Commit

Permalink
Resolved variable name clash (#1568)
Browse files Browse the repository at this point in the history
There is another variable named script in the autoloader.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Sep 23, 2018
1 parent e529edd commit bfa5a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/autoloader/prism-autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @param {function=} success
* @param {function=} error
*/
var script = function (src, success, error) {
var addScript = function (src, success, error) {
var s = document.createElement('script');
s.src = src;
s.async = true;
Expand Down Expand Up @@ -155,7 +155,7 @@
} else if (force || !data.loading) {
data.loading = true;
var src = getLanguagePath(lang);
script(src, function () {
addScript(src, function () {
data.loading = false;
languageSuccess(lang);

Expand Down
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bfa5a8d

Please sign in to comment.