Skip to content
Snippets Groups Projects
Commit ada4a810 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix Safari

parent bb33c3af
No related branches found
No related tags found
No related merge requests found
......@@ -9,22 +9,11 @@ import USStateMap from "./USStateMap.jsx";
import WorldMap from "./WorldMap.jsx";
import PinMap from "./PinMap.jsx";
class MapDefault extends Map {
constructor(_default, ...args) {
super(...args);
this._default = _default;
}
get(key) {
if (this.has(key)) {
return super.get(key);
} else {
return this._default;
}
}
const visualizations = new Map();
visualizations.get = function(key) {
return Map.prototype.get.call(this, key) || Table;
}
const visualizations = new MapDefault(Table);
export function registerVisualization(visualization) {
let identifier = visualization.identifier;
if (identifier == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment