mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
Remove unnecessary window parameter to Context
This commit is contained in:
@@ -4,7 +4,7 @@ describe('iD.behaviorHash', function () {
|
||||
var hash, context;
|
||||
|
||||
beforeEach(function () {
|
||||
context = iD.Context(window);
|
||||
context = iD.Context();
|
||||
context.container(d3.select(document.createElement('div')));
|
||||
|
||||
// Neuter connection
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.behaviorLasso', function () {
|
||||
var lasso, context;
|
||||
|
||||
beforeEach(function () {
|
||||
context = iD.Context(window).imagery(iD.dataImagery);
|
||||
context = iD.Context().imagery(iD.dataImagery);
|
||||
context.container(d3.select(document.createElement('div')));
|
||||
|
||||
// Neuter connection
|
||||
|
||||
@@ -3,7 +3,7 @@ describe('iD.behaviorSelect', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
container = d3.select('body').append('div');
|
||||
context = iD.Context(window).imagery(iD.dataImagery).container(container);
|
||||
context = iD.Context().imagery(iD.dataImagery).container(container);
|
||||
|
||||
a = iD.Node({loc: [0, 0]});
|
||||
b = iD.Node({loc: [0, 0]});
|
||||
|
||||
Reference in New Issue
Block a user