From: Vincent Vanwaelscappel Date: Tue, 26 Sep 2023 10:24:08 +0000 (+0200) Subject: wait #6303 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ba4136b3be6c6a6acb26ab7770613f643c44b2ae;p=fluidbook-html5.git wait #6303 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.loader.js b/js/libs/fluidbook/fluidbook.loader.js index a5062731..1324ae9b 100644 --- a/js/libs/fluidbook/fluidbook.loader.js +++ b/js/libs/fluidbook/fluidbook.loader.js @@ -602,7 +602,7 @@ FluidbookLoader.prototype = { nb++; var i = $(this).data('id'); var url = $(this).data('image').replace(/^\.\./, 'data') + '?j=' + (new Date()).getTime(); - textures[i] = $this.loadImage($this.getURL(url),null,null,null,null, cb, 'i_' + i); + textures[i] = $this.loadImage($this.getURL(url), null, null, null, null, cb, 'i_' + i); }); if (nb === 0) { @@ -690,14 +690,13 @@ FluidbookLoader.prototype = { var i = $(this).data('id'); if (textures[i] !== undefined && textures[i] !== null) { try { - ctx.drawImage(textures[i], left, top, width, height); + ctx.drawImage(textures[i].get(0), left, top, width, height); } catch (e) { - console.warn(e); + console.warn(textures[i]); } } } }); - $('.texture_clinks[data-page="' + page + '"]').remove(); }