Added HighlightTileRenderer (thanks in part to rockNme2349)

This commit is contained in:
FrozenCow 2011-04-07 15:46:50 +02:00
parent eb276dd59d
commit d53b3bc340
4 changed files with 119 additions and 4 deletions

View file

@ -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.