Skip to content

Commit

Permalink
use let instead of with (with will be deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Mar 10, 2019
1 parent eff95e1 commit 628dccf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/templates/current/leaflet-map.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#with (hash
{{#let (hash
tile=(component "tile-layer" parentComponent=this)
wms-tile=(component "wms-tile-layer" parentComponent=this)
marker=(component "marker-layer" parentComponent=this)
Expand Down Expand Up @@ -26,7 +26,7 @@
{{/each}}

{{yield mergedComponents}}
{{/with}}
{{/let}}

{{!--
`wmsTile` and `geoJSON` are provided for backwards compatibility reasons.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"ember-get-config": "^0.2.4",
"ember-in-element-polyfill": "^0.1.3",
"ember-invoke-action": "^1.5.1",
"ember-let-polyfill": "^0.1.0",
"fastboot-transform": "^0.1.3",
"resolve": "^1.10.0"
},
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5565,6 +5565,14 @@ ember-leaflet-marker-cluster@miguelcobain/ember-leaflet-marker-cluster#register-
fastboot-transform "^0.1.3"
leaflet.markercluster "^1.4.1"

ember-let-polyfill@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/ember-let-polyfill/-/ember-let-polyfill-0.1.0.tgz#9d37c610441eb41eaaea3a6782bbd4203f5cf0a9"
integrity sha512-olLHpS7JnqZcfyYRXcdLATYwDIopKA+ZzI8xswzCIcBYoRgoUJY7E/eW84Unu8ea1jtr/Unx+dQrsU+NrNSoBg==
dependencies:
ember-cli-babel "^6.16.0"
ember-cli-version-checker "^2.1.2"

ember-load-initializers@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ember-load-initializers/-/ember-load-initializers-2.0.0.tgz#d4b3108dd14edb0f9dc3735553cc96dadd8a80cb"
Expand Down

0 comments on commit 628dccf

Please sign in to comment.