]> _ Git - fluidbook-html5.git/commitdiff
wait #4083 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Nov 2020 16:52:27 +0000 (17:52 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Nov 2020 16:52:27 +0000 (17:52 +0100)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.js

index e13425a1dc1f5f4e28b4aad05227cb481e9bad2a..690b3f3a54aabfc533817cb8a76c0842d9106e0d 100644 (file)
@@ -745,10 +745,12 @@ FluidbookLinks.prototype = {
             this.fluidbook.slideshow.clear();
         }
 
-        $("#links .fb-slideshow").each(function () {
-            $this.fluidbook.slideshow.initInlineSlideshow(this);
-        });
-        this.fluidbook.slideshow.resizeInline();
+        if (this.fluidbook.slideshow !== undefined) {
+            $("#links .fb-slideshow").each(function () {
+                $this.fluidbook.slideshow.initInlineSlideshow(this);
+            });
+            this.fluidbook.slideshow.resizeInline();
+        }
     },
 
     resize: function () {
index a85e8881724dcf87d43ab5d60d4c16c4b1620fa6..3cb5531f68a3bafed4c67bb091c0201f9dc2ee18 100644 (file)
@@ -75,6 +75,8 @@ FluidbookSlideshow.prototype = {
     },
 
     resizeInline: function () {
-        this.inlineInstance.resizeInline();
+        if (this.inlineInstance !== undefined) {
+            this.inlineInstance.resizeInline();
+        }
     },
 };