From befd174983e0cba1a55c027150245d1552b8cb9d Mon Sep 17 00:00:00 2001 From: Jens Berthold Date: Tue, 11 Aug 2020 16:56:19 +0200 Subject: [PATCH] [DOC] Fix hint about event handler argument order --- packages/@ember/-internals/glimmer/lib/modifiers/on.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/@ember/-internals/glimmer/lib/modifiers/on.ts b/packages/@ember/-internals/glimmer/lib/modifiers/on.ts index 56db7bf1b63..b2264c4e7ee 100644 --- a/packages/@ember/-internals/glimmer/lib/modifiers/on.ts +++ b/packages/@ember/-internals/glimmer/lib/modifiers/on.ts @@ -291,8 +291,10 @@ function addEventListener( ``` - In this case, the `saveLike` function will receive two arguments: the click event - and the value of `@post`. + In this case, the `saveLike` function will receive two arguments: the value + of `@post` and the click event. The click event will always be the last + argument passed to the handler because `{{fn}}` injects custom arguments + first. ### Function Context