Merge branch 'master' into add-feature-search-bar

This commit is contained in:
Quincy Morgan
2019-03-02 18:35:39 -05:00
2 changed files with 7 additions and 1 deletions

View File

@@ -85,7 +85,7 @@
"rollup-plugin-node-resolve": "^4.0.0",
"shelljs": "^0.8.0",
"shx": "^0.3.0",
"sinon": "^7.2.4",
"sinon": "^7.2.6",
"sinon-chai": "^3.1.0",
"smash": "0.0",
"svg-sprite": "1.5.0",

View File

@@ -38,6 +38,12 @@ expect = chai.expect;
window.d3 = iD.d3; // TODO: remove
// Object.getOwnPropertySymbols polyfill (For PhantomJS / IE11) - #6001
if (!Object.getOwnPropertySymbols) {
Object.defineProperty(Object.prototype, 'getOwnPropertySymbols', {
value: function() { return []; }
});
}
// Array.find polyfill (For PhantomJS / IE11)
// https://tc39.github.io/ecma262/#sec-array.prototype.find