do what you have to do
This commit is contained in:
parent
b64558f860
commit
a0d9d9caa4
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ $(document).ready(function () {
|
||||||
if (Metamaps.hasOwnProperty(prop) &&
|
if (Metamaps.hasOwnProperty(prop) &&
|
||||||
Metamaps[prop].hasOwnProperty('init') &&
|
Metamaps[prop].hasOwnProperty('init') &&
|
||||||
typeof Metamaps[prop] === 'object' &&
|
typeof Metamaps[prop] === 'object' &&
|
||||||
|
!Array.isArray(Metamaps[prop]) && # ugh
|
||||||
|
Metamaps[prop] !== null && # double ugh
|
||||||
typeof (Metamaps[prop].init) === 'function'
|
typeof (Metamaps[prop].init) === 'function'
|
||||||
) {
|
) {
|
||||||
Metamaps[prop].init();
|
Metamaps[prop].init();
|
||||||
|
|
Loading…
Reference in a new issue