Skip to content

Commit f0d7ba8

Browse files
authored
Removed {{action}} helper from addon (#411)
* chore: Removed {{action}} helper from addon * chore: Removed {{action}} helper from docs-app --------- Co-authored-by: ijlee2 <[email protected]>
1 parent d7c0e58 commit f0d7ba8

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

addon/components/basic-dialog.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
{{#if this.hasOverlay}}
2828
<EmberModalDialog::Overlay
2929
class={{this.overlayClassNamesString}}
30-
@onClickOverlay={{action
31-
(ignore-children this.onClickOverlay)
30+
@onClickOverlay={{ignore-children
31+
this.onClickOverlay
3232
}}
3333
>
3434
<EmberModalDialogPositionedContainer

addon/components/liquid-dialog.hbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@
4141
{{#if this.hasOverlay}}
4242
<EmberModalDialog::Overlay
4343
class={{this.overlayClassNamesString}}
44-
@onClickOverlay={{action
45-
(ignore-children this.onClickOverlay)
46-
}}
44+
@onClickOverlay={{ignore-children this.onClickOverlay}}
4745
>
4846
<div
4947
class={{this.containerClassNamesString}}

tests/dummy/app/utils/code-snippets/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default class MyCoolModalDialog extends ModalDialogComponent {
160160
}`,
161161

162162
'subclass-modal-dialog-animatable-hbs': `<MyCoolModalDialog
163-
@onClose={{action "toggleSubclassed"}}
163+
@onClose={{this.closeModal}}
164164
@animatable={{true}}
165165
>
166166
<h1>Stop! Modal Time!</h1>

0 commit comments

Comments
 (0)