diff --git a/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb b/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb index 7fb640ae..e33d54bd 100644 --- a/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb +++ b/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb @@ -50,6 +50,8 @@ $(document).ready(function () { if (Metamaps.hasOwnProperty(prop) && Metamaps[prop].hasOwnProperty('init') && typeof Metamaps[prop] === 'object' && + !Array.isArray(Metamaps[prop]) && # ugh + Metamaps[prop] !== null && # double ugh typeof (Metamaps[prop].init) === 'function' ) { Metamaps[prop].init();