From a0d9d9caa413e70540d182ec799d13c576340b31 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 29 Feb 2016 11:54:01 +0800 Subject: [PATCH] do what you have to do --- app/assets/javascripts/src/Metamaps.GlobalUI.js.erb | 2 ++ 1 file changed, 2 insertions(+) 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();