]> _ Git - fluidbook-html5.git/commitdiff
wait #6269 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 15:32:21 +0000 (17:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 15:32:21 +0000 (17:32 +0200)
js/libs/fluidbook/fluidbook.loader.js

index d1be3759c4190d244d5e1e21c50dcacd3af20332..30af3e3fd3825e6c2698fd2214d8cd6a0a96bfbb 100644 (file)
@@ -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) {