From aca953e06a7cf5aa6906df677a8fb6ed3e688a03 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 25 Oct 2017 16:45:45 +0100 Subject: FF: Share |root| global proxy, re-add the globals to window on DOMLoad This is a workaround for Firefox bug 1408996. --- lib/utils.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/utils.coffee') diff --git a/lib/utils.coffee b/lib/utils.coffee index d0a82cf7..b5b96844 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -335,8 +335,11 @@ class JobRunner onReady: (callback) -> @fetcher.use callback -root = exports ? window +root = exports ? (window.root ?= {}) root.Utils = Utils root.SimpleCache = SimpleCache root.AsyncDataFetcher = AsyncDataFetcher root.JobRunner = JobRunner +unless exports? + root.extend = extend + extend window, root -- cgit v1.2.3