浏览代码

Don't use ES6 features, for compatibility reasons.

pull/562/head
Matthew Petroff 6 年前
committed by GitHub
父节点
当前提交
33b1284720
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/js/libpannellum.js

+ 2
- 2
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);


正在加载...
取消
保存