Skip to content

Commit

Permalink
Remove Object.values usage that was causing IE11 to fail (#9193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arindam Bose authored and ahk committed Jan 16, 2020
1 parent b2c4b04 commit ff03457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/source/source_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Tile from './tile';
import {Event, ErrorEvent, Evented} from '../util/evented';
import TileCache from './tile_cache';
import MercatorCoordinate from '../geo/mercator_coordinate';
import {keysDifference} from '../util/util';
import {keysDifference, values} from '../util/util';
import EXTENT from '../data/extent';
import Context from '../gl/context';
import Point from '@mapbox/point-geometry';
Expand Down Expand Up @@ -182,7 +182,7 @@ class SourceCache extends Evented {
* Return all tile ids ordered with z-order, and cast to numbers
*/
getIds(): Array<string> {
return (Object.values(this._tiles): any).map((tile: Tile) => tile.tileID).sort(compareTileId).map(id => id.key);
return (values(this._tiles): any).map((tile: Tile) => tile.tileID).sort(compareTileId).map(id => id.key);
}

getRenderableIds(symbolLayer?: boolean): Array<string> {
Expand Down

0 comments on commit ff03457

Please sign in to comment.