Merge a0d9d9caa4
into 2e6493fd23
This commit is contained in:
commit
f7e8b2de1e
2 changed files with 9 additions and 7 deletions
|
@ -49,7 +49,10 @@ $(document).ready(function () {
|
||||||
// this runs the init function within each sub-object on the Metamaps one
|
// this runs the init function within each sub-object on the Metamaps one
|
||||||
if (Metamaps.hasOwnProperty(prop) &&
|
if (Metamaps.hasOwnProperty(prop) &&
|
||||||
Metamaps[prop].hasOwnProperty('init') &&
|
Metamaps[prop].hasOwnProperty('init') &&
|
||||||
typeof (Metamaps[prop].init) == 'function'
|
typeof Metamaps[prop] === 'object' &&
|
||||||
|
!Array.isArray(Metamaps[prop]) && # ugh
|
||||||
|
Metamaps[prop] !== null && # double ugh
|
||||||
|
typeof (Metamaps[prop].init) === 'function'
|
||||||
) {
|
) {
|
||||||
Metamaps[prop].init();
|
Metamaps[prop].init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,12 +17,11 @@ var labelType, useGradients, nativeTextSupport, animate;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// TODO eliminate these 4 top-level variables
|
// TODO eliminate these 4 top-level variables
|
||||||
Metamaps = {
|
Metamaps = window.Metamaps || {};
|
||||||
panningInt: null,
|
Metamaps.panningInt = null;
|
||||||
tempNode: null,
|
Metamaps.tempNode = null;
|
||||||
tempInit: false,
|
Metamaps.tempInit = false;
|
||||||
tempNode2: null
|
Metamaps.tempNode2 = null;
|
||||||
}
|
|
||||||
|
|
||||||
Metamaps.Settings = {
|
Metamaps.Settings = {
|
||||||
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
|
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
|
||||||
|
|
Loading…
Add table
Reference in a new issue