Skip to content

Commit

Permalink
Merge pull request #5628 from flacoman91/ie11-remove-node-patch
Browse files Browse the repository at this point in the history
CCDB Landing page: IE11 remove node patch
  • Loading branch information
flacoman91 committed Apr 7, 2020
2 parents 9794488 + 0e12c7b commit b8fd99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cfgov/unprocessed/apps/ccdb-landing-map/js/TileMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export function tooltipFormatter() {
* Draw a legend on a chart.
* @param {Object} chart A highchart chart.
*/
// eslint-disable-next-line max-lines-per-function, require-jsdoc
export function _drawLegend( chart ) {
const bins = chart.options.bins;
const marginTop = chart.margin[0] || 0;
Expand Down
3 changes: 2 additions & 1 deletion cfgov/unprocessed/apps/ccdb-landing-map/js/landing-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function start( isPerCapita ) {
const el = document.getElementById( 'landing-map' );
const elements = el.querySelectorAll( '*' );
for ( let i = 0; i < elements.length; i++ ) {
elements[i].remove();
const node = elements[i];
node.parentNode.removeChild( node );
}

const dataUrl = 'https://files.consumerfinance.gov/ccdb/hero-map-3y.json';
Expand Down

0 comments on commit b8fd99e

Please sign in to comment.