Type Msg
= ...
| NoOp msg
update msg model =
case msg of
NoOp _ -> ( model, Cmd.none )
That should do the trick for you. You might want a better message name.
Also, why discard the message?
On Fri, Jan 27, 2017 at 10:45 AM, 'Rupert Smith' via Elm Discuss <
[email protected]> wrote:
> Having a dozy moment again...
>
> If I have some view that returns an Html MyFunkyStuff.Msg but I want to
> Html.map that to the local Html Msg, is there a way I can discard the
> message being mapped? There isn't an Html.none like there is Cmd.none or
> Sub.none.
>
> Perhaps there isn't a way of doing this, and I need to code my own Noop
> message? I guess javascript event handlers have already been attached by
> the view function just executed, so they can't be turned off in this way?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.