Skip to content

Commit 84c4644

Browse files
authored
fix: update annotation with modern syntax (#599)
1 parent eb011b0 commit 84c4644

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ember-concurrency/src/-private/task-public-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { assert } from '@ember/debug';
3030
* ```
3131
*
3232
* ```hbs
33-
* <button {{action myTask.perform}}>Perform Task</button>
33+
* <button {{on "click" myTask.perform}}>Perform Task</button>
3434
* ```
3535
*
3636
* By default, tasks have no concurrency constraints

packages/ember-concurrency/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ type TaskOptions = OptionsFor<TaskProperty<unknown, unknown[]>>;
567567
* ```
568568
*
569569
* ```hbs
570-
* <button {{action myTask.perform}}>Perform Task</button>
570+
* <button {{on "click" myTask.perform}}>Perform Task</button>
571571
* ```
572572
*
573573
* By default, tasks have no concurrency constraints

0 commit comments

Comments
 (0)