jenkins-bot has submitted this change and it was merged.

Change subject: Fix globals in strict mode
......................................................................


Fix globals in strict mode

I didn't really intend to make this strict yet, but since I did,
better make it work

Follow up to: I679246089ec485678088ff08f3a46d8b74a262c5
Change-Id: Ic6180b3188d46ce92e0547b0fbb6c333906c49f6
---
M modules/ext.math.mathjax.enabler.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Frédéric Wang: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ext.math.mathjax.enabler.js 
b/modules/ext.math.mathjax.enabler.js
index 1ba9579..eb9a51e 100644
--- a/modules/ext.math.mathjax.enabler.js
+++ b/modules/ext.math.mathjax.enabler.js
@@ -6,7 +6,7 @@
        'use strict';
 
        if ( typeof mathJax === 'undefined' ) {
-               mathJax = {};
+               window.mathJax = {};
        }
 
        mathJax.version = '0.2';
@@ -228,7 +228,7 @@
                }
 
                // create the global MathJax variable to hook into MathJax 
startup
-               MathJax = {
+               window.MathJax = {
                        delayStartupUntil: 'configured',
                        AuthorInit: mathJax.Init
                };

-- 
To view, visit https://gerrit.wikimedia.org/r/124303
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic6180b3188d46ce92e0547b0fbb6c333906c49f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
Gerrit-Reviewer: Frédéric Wang <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to