From e1343c3f87e066d344a397e710db44ae025c6570 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 7 Apr 2014 12:30:01 +0200 Subject: [PATCH] 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 --- modules/ext.math.mathjax.enabler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.math.mathjax.enabler.js b/modules/ext.math.mathjax.enabler.js index 1ba957977..eb9a51e23 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 };