do what you have to do

This commit is contained in:
Devin Howard 2016-02-29 11:54:01 +08:00
parent b64558f860
commit a0d9d9caa4

View file

@ -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();