Skip to content

Commit

Permalink
drop ember-truth-helpers or dep. fixes #636
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Apr 1, 2021
1 parent efae96c commit 88f22fe
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 37 deletions.
2 changes: 1 addition & 1 deletion addon/components/base-layer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{#each this.componentsToYield as |c|}}
{{ember-leaflet-assign-to
components
key=(or c.as c.name)
key=(ember-leaflet-or c.as c.name)
value=(component c.name parent=this node=Node)
onChange=this.mergeComponents}}
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/geojson-layer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{#each this.componentsToYield as |c|}}
{{ember-leaflet-assign-to
components
key=(or c.as c.name)
key=(ember-leaflet-or c.as c.name)
value=(component c.name parent=this node=Node)
onChange=this.mergeComponents}}
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/leaflet-map.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{#each this.componentsToYield as |c|}}
{{ember-leaflet-assign-to
components
key=(or c.as c.name)
key=(ember-leaflet-or c.as c.name)
value=(component c.name parent=this node=Node)
onChange=this.mergeComponents}}
{{/each}}
Expand Down
7 changes: 7 additions & 0 deletions addon/helpers/ember-leaflet-or.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { helper } from '@ember/component/helper';

export function emberLeafletOr(params) {
return params.reduce((previous, current) => previous || current, undefined);
}

export default helper(emberLeafletOr);
1 change: 1 addition & 0 deletions app/helpers/ember-leaflet-or.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default, emberLeafletOr } from 'ember-leaflet/helpers/ember-leaflet-or';
36 changes: 3 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"ember-get-config": "^0.3.0",
"ember-in-element-polyfill": "^1.0.0",
"ember-render-helpers": "^0.2.0",
"ember-truth-helpers": "^3.0.0",
"fastboot-transform": "^0.1.3",
"resolve": "^1.19.0"
},
Expand Down

0 comments on commit 88f22fe

Please sign in to comment.