From e4d8e77af1dbbff78c0cabc826dbf168ae06e2f3 Mon Sep 17 00:00:00 2001 From: adauguet Date: Mon, 5 Jul 2021 21:31:31 +0200 Subject: [PATCH] Update Events.elm --- src/Browser/Events.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Browser/Events.elm b/src/Browser/Events.elm index 0dec4ec..ef39a6c 100644 --- a/src/Browser/Events.elm +++ b/src/Browser/Events.elm @@ -190,9 +190,9 @@ For example, you could track the current width by saying: type Msg = GotNewWidth Int - subscriptions : model -> Cmd Msg + subscriptions : model -> Sub Msg subscriptions _ = - E.onResize (\w h -> GotNewWidth w) + E.onResize (\w _ -> GotNewWidth w) **Note:** This is equivalent to getting events from [`window.onresize`][resize].