Workaround for chrome crash bug (#2295)

This commit is contained in:
John Firebaugh
2014-07-24 10:33:23 -07:00
parent 60af39c7da
commit 9822cb3651

View File

@@ -69,6 +69,7 @@ iD.TileLayer = function() {
tile().forEach(function(d) {
addSource(d);
if (d[3] === '') return;
if (typeof d[3] !== 'string') return; // Workaround for chrome crash https://github.com/openstreetmap/iD/issues/2295
requests.push(d);
if (cache[d[3]] === false && lookUp(d)) {
requests.push(addSource(lookUp(d)));