/* global openstreetbrowserPrefix */ var loadClash = {} var cache = {} function applyOptions (code, options) { var style = '' for (var k in options) { if (k !== 'size') { style += k + ':' + options[k] + ';' } } return code.replace(/ p[1](req.statusText, null)) delete loadClash[file] return } cache[file] = req.responseText loadClash[file].forEach(p => p[1](null, applyOptions(cache[file], p[0]))) delete loadClash[file] }) req.open('GET', url) req.send() } module.exports = maki