From 33b1284720e81dd7ca6bed35c3d4b65a684b5e96 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sat, 3 Mar 2018 21:01:57 -0500 Subject: [PATCH] Don't use ES6 features, for compatibility reasons. --- src/js/libpannellum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/libpannellum.js b/src/js/libpannellum.js index 0384075..5dc09d0 100644 --- a/src/js/libpannellum.js +++ b/src/js/libpannellum.js @@ -208,7 +208,7 @@ function Renderer(container) { incLoaded(); }; - const incLoaded = function() { + var incLoaded = function() { if (this.width != 0) // support partial fallback/cubemap image fallbackImgSize = this.width; if (loaded == 5 && this.width == 0) // support partial fallback/cubemap image @@ -1034,7 +1034,7 @@ function Renderer(container) { this.texture = this.callback = null; this.image = new Image(); this.image.crossOrigin = crossOrigin ? crossOrigin : 'anonymous'; - const loadFn = (function() { + var loadFn = (function() { if (self.image.width > 0 && self.image.height > 0) // ignore missing tile to supporting partial image processLoadedTexture(self.image, self.texture); self.callback(self.texture);