I have the following code that I am looking to simplify:
var MM = Microsoft.Maps;
MM.loadModule("MM.Clustering", function () {
MM.loadModule("HtmlPushpinLayerModule", function () {
// Do actual work
});
});
Is it possible to combine these into something like (pseudocode):
MM.loadModule("MM.Clustering") && MM.loadModule("HtmlPushpinLayerModule"), function() {
// Do actual work
});