print more info for duplicate resos (see #182)
This commit is contained in:
parent
4e837a4084
commit
e1fd13e4af
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user