summaryrefslogtreecommitdiff
path: root/vendor/browser-es-module-loader/dist/browser-es-module-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/browser-es-module-loader/dist/browser-es-module-loader.js')
-rw-r--r--vendor/browser-es-module-loader/dist/browser-es-module-loader.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/vendor/browser-es-module-loader/dist/browser-es-module-loader.js b/vendor/browser-es-module-loader/dist/browser-es-module-loader.js
index c5d699e..f7e7423 100644
--- a/vendor/browser-es-module-loader/dist/browser-es-module-loader.js
+++ b/vendor/browser-es-module-loader/dist/browser-es-module-loader.js
@@ -1169,7 +1169,7 @@ var loader;
// <script type="module"> support
var anonSources = {};
if (typeof document != 'undefined' && document.getElementsByTagName) {
- function handleError(err) {
+ var handleError = function(err) {
// dispatch an error event so that we can display in errors in browsers
// that don't yet support unhandledrejection
if (window.onunhandledrejection === undefined) {
@@ -1195,9 +1195,9 @@ if (typeof document != 'undefined' && document.getElementsByTagName) {
// throw so it still shows up in the console
throw err;
- }
+ };
- function ready() {
+ var ready = function() {
document.removeEventListener('DOMContentLoaded', ready, false );
var anonCnt = 0;
@@ -1223,7 +1223,7 @@ if (typeof document != 'undefined' && document.getElementsByTagName) {
}
}
}
- }
+ };
// simple DOM ready
if (document.readyState === 'complete')
@@ -1263,12 +1263,12 @@ BrowserESModuleLoader.prototype[RegisterLoader$1.resolve] = function(key, parent
function xhrFetch(url, resolve, reject) {
var xhr = new XMLHttpRequest();
- function load(source) {
+ var load = function(source) {
resolve(xhr.responseText);
- }
- function error() {
+ };
+ var error = function() {
reject(new Error('XHR error' + (xhr.status ? ' (' + xhr.status + (xhr.statusText ? ' ' + xhr.statusText : '') + ')' : '') + ' loading ' + url));
- }
+ };
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
@@ -1304,8 +1304,8 @@ var WorkerPool = function (script, size) {
this._jobs = 0;
this.onmessage = undefined;
this._stopTimeout = undefined;
- for (let i = 0; i < size; i++) {
- let wrkr = new Worker(script);
+ for (var i = 0; i < size; i++) {
+ var wrkr = new Worker(script);
wrkr._count = 0;
wrkr._ind = i;
wrkr.onmessage = this._onmessage.bind(this, wrkr);
@@ -1321,7 +1321,7 @@ WorkerPool.prototype = {
clearTimeout(this._stopTimeout);
this._stopTimeout = undefined;
}
- let wrkr = this._workers[this._ind % this._size];
+ var wrkr = this._workers[this._ind % this._size];
wrkr._count++;
this._jobs++;
wrkr.postMessage(msg);