PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Admin/Form/FrontEndScriptGenerator.php +2 -4 V-3.3.03.3.1 View file →
@@ -42,17 +42,15 @@
42 42 }
43 43 if(!window.bf_globals[contentId]){
44 44 window.bf_globals[contentId] = {inits: {}, contentId: contentId};
45 45 }else{
46 - window.bf_globals[contentId].inits = {};
46 + if(!window.bf_globals[contentId].inits) window.bf_globals[contentId].inits = {};
47 47 window.bf_globals[contentId].contentId = contentId;
48 48 }
49 49 });
50 50 };
51 - // Wait for DOM ready: optimizers can run this before the form markup is
52 - // parsed, and the not-found branch would then delete arrived config.
53 51 if(document.readyState === "loading"){
54 - document.addEventListener("DOMContentLoaded", bfSetupGlobals);
52 + document.addEventListener("DOMContentLoaded", bfSetupGlobals, { once: true });
55 53 } else {
56 54 bfSetupGlobals();
57 55 }
58 56 })();';