Use live bound object for imagery array, remove context.imagery() accessor

Also update documentation, closes #3359
This commit is contained in:
Bryan Housel
2016-11-14 11:15:03 -05:00
parent 9c8037ca4e
commit 93d50b4e87
12 changed files with 97 additions and 42 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.behaviorLasso', function () {
var lasso, context;
beforeEach(function () {
context = iD.Context().imagery(iD.dataImagery);
context = iD.Context();
context.container(d3.select(document.createElement('div')));
// Neuter connection
+1 -1
View File
@@ -3,7 +3,7 @@ describe('iD.behaviorSelect', function() {
beforeEach(function() {
container = d3.select('body').append('div');
context = iD.Context().imagery(iD.dataImagery).container(container);
context = iD.Context().container(container);
a = iD.Node({loc: [0, 0]});
b = iD.Node({loc: [0, 0]});
-1
View File
@@ -6,7 +6,6 @@ describe.skip('iD.modeAddPoint', function() {
context = iD.Context()
.presets(iD.dataPresets)
.imagery([])
.container(container);
context.loadTiles = function () {};
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.Map', function() {
var context, map;
beforeEach(function() {
context = iD.Context().imagery(iD.dataImagery);
context = iD.Context();
context.container(d3.select(document.createElement('div')));
map = context.map();
d3.select(document.createElement('div'))
+1
View File
@@ -1,6 +1,7 @@
/* globals chai:false */
iD.debug = true;
iD.data.imagery = [];
mocha.setup({
ui: 'bdd',