From f800e5afbc6dee0fb06a7aae6fd60d9544cc95ea Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 10 Nov 2016 15:19:03 -0500 Subject: [PATCH] Remove unnecessary `window` parameter to Context --- API.md | 6 +++--- data/presets/README.md | 2 +- index.html | 2 +- test/spec/actions/split.js | 2 +- test/spec/behavior/hash.js | 2 +- test/spec/behavior/lasso.js | 2 +- test/spec/behavior/select.js | 2 +- test/spec/core/context.js | 12 ++++++------ test/spec/core/history.js | 2 +- test/spec/modes/add_point.js | 2 +- test/spec/osm/way.js | 2 +- test/spec/renderer/features.js | 2 +- test/spec/renderer/map.js | 2 +- test/spec/renderer/tile_layer.js | 2 +- test/spec/services/mapillary.js | 2 +- test/spec/services/osm.js | 2 +- test/spec/svg/areas.js | 2 +- test/spec/svg/layers.js | 2 +- test/spec/svg/lines.js | 2 +- test/spec/svg/midpoints.js | 2 +- test/spec/svg/points.js | 2 +- test/spec/svg/vertices.js | 2 +- test/spec/ui/fields/access.js | 2 +- test/spec/ui/fields/wikipedia.js | 2 +- test/spec/ui/raw_tag_editor.js | 2 +- 25 files changed, 32 insertions(+), 32 deletions(-) diff --git a/API.md b/API.md index 672aaaed0..8c686d5ec 100644 --- a/API.md +++ b/API.md @@ -147,7 +147,7 @@ iD can use external presets exclusively or along with the default OpenStreetMap ```js -var id = iD.Context(window) +var id = iD.Context() .presets(customPresets) .imagery(iD.dataImagery); @@ -161,7 +161,7 @@ Just like Presets, Imagery can be configured using the `context.imagery` accesso ```js -var id = iD.Context(window) +var id = iD.Context() .presets(customPresets) .imagery(customImagery); @@ -176,7 +176,7 @@ The minimum zoom at which iD enters the edit mode is configured using the `conte ```js -var id = iD.Context(window). +var id = iD.Context() .minEditableZoom(zoom_level) ``` diff --git a/data/presets/README.md b/data/presets/README.md index 6c354019b..ac5d0986f 100644 --- a/data/presets/README.md +++ b/data/presets/README.md @@ -236,7 +236,7 @@ iD supports deployments which use a custom set of presets. You can supply preset the `presets` accessor: ```js -var id = iD.Context(window).presets({ +var id = iD.Context().presets({ presets: { ... }, fields: { ... }, defaults: { ... }, diff --git a/index.html b/index.html index e8638d677..930cd9e1c 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@