From dac5bc83f9dd6916f3c1a82441fe0501456c2b72 Mon Sep 17 00:00:00 2001 From: atomiks Date: Sat, 6 Jan 2018 03:01:08 +1100 Subject: [PATCH] Update on.md --- snippets/on.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snippets/on.md b/snippets/on.md index c8fa6ee20..f25404d3a 100644 --- a/snippets/on.md +++ b/snippets/on.md @@ -7,7 +7,8 @@ Use `EventTarget.addEventListener()` to add an event listener to an element. If target specified and then invoke the callback by supplying the correct `this` context. Use `options` to pass options to `addEventListener` or omit it to use bubbling by default. In order to use this function with `off`, the reference to the custom delegator function -is returned if the `target` option is specified. +is returned if the `target` option is specified. Omit `opts` to default to non-delegation +behavior and event bubbling. ```js const on = (el, evt, fn, opts = {}) => {