Procházet zdrojové kódy

Don't use ES6 features, for compatibility reasons.

pull/562/head
Matthew Petroff před 6 roky
committed by GitHub
rodič
revize
33b1284720
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      src/js/libpannellum.js

+ 2
- 2
src/js/libpannellum.js Zobrazit soubor

@@ -208,7 +208,7 @@ function Renderer(container) {
incLoaded(); incLoaded();
}; };
const incLoaded = function() {
var incLoaded = function() {
if (this.width != 0) // support partial fallback/cubemap image if (this.width != 0) // support partial fallback/cubemap image
fallbackImgSize = this.width; fallbackImgSize = this.width;
if (loaded == 5 && this.width == 0) // support partial fallback/cubemap image if (loaded == 5 && this.width == 0) // support partial fallback/cubemap image
@@ -1034,7 +1034,7 @@ function Renderer(container) {
this.texture = this.callback = null; this.texture = this.callback = null;
this.image = new Image(); this.image = new Image();
this.image.crossOrigin = crossOrigin ? crossOrigin : 'anonymous'; 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 if (self.image.width > 0 && self.image.height > 0) // ignore missing tile to supporting partial image
processLoadedTexture(self.image, self.texture); processLoadedTexture(self.image, self.texture);
self.callback(self.texture); self.callback(self.texture);


Načítá se…
Zrušit
Uložit