mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
Remove unnecessary window parameter to Context
This commit is contained in:
@@ -2,7 +2,7 @@ describe('iD.uiFieldAccess', function() {
|
||||
var selection, field;
|
||||
beforeEach(function() {
|
||||
selection = d3.select(document.createElement('div'));
|
||||
field = iD.Context(window)
|
||||
field = iD.Context()
|
||||
.presets(iD.dataPresets).presets().field('access');
|
||||
});
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('iD.uiFieldWikipedia', function() {
|
||||
beforeEach(function() {
|
||||
entity = iD.Node({id: 'n12345'});
|
||||
selectedId = entity.id;
|
||||
context = iD.Context(window);
|
||||
context = iD.Context();
|
||||
context.history().merge([entity]);
|
||||
selection = d3.select(document.createElement('div'));
|
||||
field = context.presets(iD.dataPresets).presets().field('wikipedia');
|
||||
|
||||
Reference in New Issue
Block a user