Skip to content

Commit 6f9aae1

Browse files
lkrombeenandrewharvey
authored andcommitted
Remove unused parameter in call to unloadVectorData
extends mapbox#3351 which changed the function unloadVectorData to take 0 parameters instead of 1. * FIX unloadVectorData call with 1 argument where 0 are expected * Changed test to assert that unloadVectorData is called with 0 parameters before overwriting
1 parent 1b04521 commit 6f9aae1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/source/tile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Tile {
6969
*/
7070
loadVectorData(data, painter) {
7171
if (this.hasData()) {
72-
this.unloadVectorData(painter);
72+
this.unloadVectorData();
7373
}
7474

7575
this.state = 'loaded';

test/unit/source/tile.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ test('querySourceFeatures', (t) => {
8787

8888
tile.loadVectorData(null, painter);
8989

90-
t.ok(tile.unloadVectorData.calledWith(painter));
90+
t.ok(tile.unloadVectorData.calledWith());
9191
t.end();
9292
});
9393

0 commit comments

Comments
 (0)