print more info for duplicate resos (see #182)

This commit is contained in:
Stefan Breunig 2013-02-16 12:53:30 +01:00
parent 4e837a4084
commit e1fd13e4af

View File

@ -378,7 +378,10 @@ window.renderResonators = function(ent, portalLayer) {
// will add/remove all elements of the LayerGroup at once.
reso.on('remove', function() { delete window.resonators[this.options.guid]; });
reso.on('add', function() {
if(window.resonators[this.options.guid]) throw('duplicate resonator detected');
if(window.resonators[this.options.guid]) {
console.error('dup reso: ' + this.options.guid);
window.debug.printStackTrace();
}
window.resonators[this.options.guid] = r;
});