Explorar el Código

Don't use ES6 features, for compatibility reasons.

pull/562/head
Matthew Petroff hace 6 años
committed by GitHub
padre
commit
33b1284720
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/js/libpannellum.js

+ 2
- 2
src/js/libpannellum.js Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar