From 022695ac74578c55d555d3c71f920a717355e6c5 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 3 May 2018 10:27:06 +0200 Subject: [PATCH] JI-575 Add support for file aggregation --- js/h5p-content-upgrade-worker.js | 2 +- js/h5p-event-dispatcher.js | 2 +- js/h5p-x-api-event.js | 2 +- js/h5p-x-api.js | 2 +- js/h5p.js | 2 +- js/jquery.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/h5p-content-upgrade-worker.js b/js/h5p-content-upgrade-worker.js index 26ad038..44b6949 100644 --- a/js/h5p-content-upgrade-worker.js +++ b/js/h5p-content-upgrade-worker.js @@ -1,4 +1,4 @@ -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; importScripts('h5p-version.js', 'h5p-content-upgrade-process.js'); var libraryLoadedCallback; diff --git a/js/h5p-event-dispatcher.js b/js/h5p-event-dispatcher.js index 592e8cf..a6707b4 100644 --- a/js/h5p-event-dispatcher.js +++ b/js/h5p-event-dispatcher.js @@ -1,4 +1,4 @@ -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; /** * The Event class for the EventDispatcher. diff --git a/js/h5p-x-api-event.js b/js/h5p-x-api-event.js index e5d6368..c1d6c66 100644 --- a/js/h5p-x-api-event.js +++ b/js/h5p-x-api-event.js @@ -1,4 +1,4 @@ -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; /** * Used for xAPI events. diff --git a/js/h5p-x-api.js b/js/h5p-x-api.js index 1cf8b74..8a27eb9 100644 --- a/js/h5p-x-api.js +++ b/js/h5p-x-api.js @@ -1,4 +1,4 @@ -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; /** * The external event dispatcher. Others, outside of H5P may register and diff --git a/js/h5p.js b/js/h5p.js index dd74a79..1b899d3 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -2,7 +2,7 @@ // TODO: Should we split up the generic parts needed by the editor(and others), and the parts needed to "run" H5Ps? /** @namespace */ -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; /** * Tells us if we're inside of an iframe. diff --git a/js/jquery.js b/js/jquery.js index d821060..90a3b83 100644 --- a/js/jquery.js +++ b/js/jquery.js @@ -5,7 +5,7 @@ return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,a // Snap this specific version of jQuery into H5P. jQuery.noConflict will // revert the globals to what they were before this file was loaded. -var H5P = H5P || {}; +var H5P = window.H5P = window.H5P || {}; /** * jQuery v1.9.1