TheDJ has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/124303

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/03/124303/1

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: newchange
Gerrit-Change-Id: Ic6180b3188d46ce92e0547b0fbb6c333906c49f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>

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

Reply via email to