From: Vincent Vanwaelscappel Date: Fri, 15 Sep 2023 15:32:21 +0000 (+0200) Subject: wait #6269 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aab2ca75e89478746c2041ee1c6f19a0743e21ca;p=fluidbook-html5.git wait #6269 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.loader.js b/js/libs/fluidbook/fluidbook.loader.js index d1be3759..30af3e3f 100644 --- a/js/libs/fluidbook/fluidbook.loader.js +++ b/js/libs/fluidbook/fluidbook.loader.js @@ -566,6 +566,7 @@ FluidbookLoader.prototype = { _preloadContentLinkTextures: function (page, clinks, links, enter, callback) { var textures = {}; + let $this=this; var cl = ''; $.each(clinks, function (blendmode, links) { @@ -601,7 +602,7 @@ FluidbookLoader.prototype = { nb++; var i = $(this).data('id'); var url = $(this).data('image').replace(/^\.\./, 'data') + '?j=' + (new Date()).getTime(); - textures[i] = loadImage(this.getURL(url), cb, 'i_' + i); + textures[i] = $this.loadImage($this.getURL(url), cb, 'i_' + i); }); if (nb === 0) {