Skip to content

Commit

Permalink
Merge pull request #182 from boris-petrov/fix-ember-3.26-deprecations
Browse files Browse the repository at this point in the history
Fix Ember 3.26 deprecations
  • Loading branch information
dgavey authored Mar 28, 2021
2 parents b975fca + 7ee5f46 commit 6e9bc33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/templates/components/draggable-object-target.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{#if enableClicking}}
{{! this should be `@enableClicking` but this is not a valid path on Ember 2.16 }}
{{#if this.enableClicking}}
<a href="#" {{action "acceptForDrop"}}>
{{yield}}
</a>
Expand Down
3 changes: 2 additions & 1 deletion app/templates/components/draggable-object.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{#if enableClicking}}
{{! this should be `@enableClicking` but this is not a valid path on Ember 2.16 }}
{{#if this.enableClicking}}
<a href="#" {{action "selectForDrag"}}>
{{yield}}
</a>
Expand Down
5 changes: 3 additions & 2 deletions app/templates/components/object-bin.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{#draggable-object-target action=(action 'handleObjectDropped') }}
<div class="object-bin-title">{{name}}</div>
{{! this should be `@name` but this is not a valid path on Ember 2.16 }}
<div class="object-bin-title">{{this.name}}</div>
<br>
{{#each model as |obj|}}
{{#each this.model as |obj|}}
{{#draggable-object action="handleObjectDragged" content=obj}}
{{yield obj}}
{{/draggable-object}}
Expand Down

0 comments on commit 6e9bc33

Please sign in to comment.