]> _ Git - fluidbook-html5.git/commitdiff
fix #3631 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 May 2020 14:25:14 +0000 (16:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 May 2020 14:25:14 +0000 (16:25 +0200)
js/libs/fluidbook/fluidbook.js

index 95bc1b0a128a591963a277ae519e2b112f6fb2bd..70ef908c5ff41761d391ba5a5ebbafdaa24054ce 100644 (file)
@@ -78,14 +78,14 @@ Fluidbook.prototype = {
         if (this.settings.basket) {
             this.cart = new FluidbookCart(this);
         }
-        if (this.settings.form == 'bulle') {
+        if (this.settings.form === 'bulle') {
             this.form = new FluidbookBulleForm(this);
-        } else if (this.settings.form == 'bourbon') {
+        } else if (this.settings.form === 'bourbon') {
             this.form = new FluidbookBourbonForm(this);
-        } else if (this.settings.form == 'avery') {
+        } else if (this.settings.form === 'avery') {
             this.form = new FluidbookAveryForm(this);
         } else {
-            this.form == false;
+            this.form = false;
         }
         this.privacy = new FluidbookPrivacy(this);
         if (typeof window.FluidbookTabs === 'function') {
@@ -122,6 +122,7 @@ Fluidbook.prototype = {
         this.pagetransitions = new FluidbookPageTransition(this);
         this.stats = new FluidbookStats(this);
         this.stats.track(10);
+        this.help = new FluidbookHelp(this);
 
         this.initTheme();
         this.initKeyboardShortcuts();
@@ -233,8 +234,6 @@ Fluidbook.prototype = {
             this.slider = new FluidbookSlider(this);
         }
 
-        this.help = new FluidbookHelp(this);
-
         // Trigger a resize
         resize();