Added HighlightTileRenderer (thanks in part to rockNme2349)
This commit is contained in:
parent
eb276dd59d
commit
d53b3bc340
4 changed files with 119 additions and 4 deletions
|
|
@ -282,8 +282,11 @@ DynMap.prototype = {
|
|||
$.each(me.options.components, function(index, configuration) {
|
||||
loadjs('js/' + configuration.type + '.js', function() {
|
||||
var componentconstructor = componentconstructors[configuration.type];
|
||||
me.components.push(new componentconstructor(me, configuration));
|
||||
|
||||
if (componentconstructor) {
|
||||
me.components.push(new componentconstructor(me, configuration));
|
||||
} else {
|
||||
// Could not load component. We'll ignore this for the moment.
|
||||
}
|
||||
componentstoload--;
|
||||
if (componentstoload == 0) {
|
||||
// Actually start updating once all components are loaded.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue