Require init() call before coreContext starts doing things

(closes #7304)
This commit is contained in:
Bryan Housel
2020-01-29 19:27:12 -05:00
parent fb4d658860
commit e19bcb77d5
45 changed files with 182 additions and 178 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ describe('iD.behaviorHash', function () {
var hash, context;
beforeEach(function () {
context = iD.coreContext();
context = iD.coreContext().init();
var container = d3.select(document.createElement('div'));
context.container(container);
container.call(context.map());
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.behaviorLasso', function () {
var context, lasso;
beforeEach(function () {
context = iD.coreContext();
context = iD.coreContext().init();
d3.select(document.createElement('div'))
.attr('id', 'map')
.call(context.map());
+1 -1
View File
@@ -3,7 +3,7 @@ describe('iD.behaviorSelect', function() {
beforeEach(function() {
container = d3.select('body').append('div');
context = iD.coreContext().container(container);
context = iD.coreContext().container(container).init();
a = iD.osmNode({loc: [0, 0]});
b = iD.osmNode({loc: [0, 0]});