summaryrefslogtreecommitdiff
path: root/vendor/browser-es-module-loader/dist/browser-es-module-loader.js
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-06-08 10:43:53 +0200
committerPierre Ossman <ossman@cendio.se>2017-06-08 10:43:53 +0200
commit55b459b47961e2ca2eb125408a1ddc60d0251457 (patch)
tree6b53a4935d2402f0f99cdb1f6f6de25b18f94e22 /vendor/browser-es-module-loader/dist/browser-es-module-loader.js
parenta5c366b834cbeb8e89406e0374e2a0903cedfbe8 (diff)
parent858ea4a77422ab0d1c7cbbd92c28600bd29113ed (diff)
downloadnovnc-55b459b47961e2ca2eb125408a1ddc60d0251457.tar.gz
Merge branch 'ios9' of https://github.com/CendioOssman/noVNC
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);