mirror of
https://github.com/rofrol/elm-ui-cookbook.git
synced 2024-09-11 21:39:03 +03:00
Rename message to msg. Add comment with Debug.log "msg"
This commit is contained in:
parent
ade374b1d8
commit
665586b19d
@ -94,8 +94,9 @@ subscriptions _ =
|
||||
|
||||
|
||||
update : Msg -> Model -> ( Model, Cmd Msg )
|
||||
update message model =
|
||||
case message of
|
||||
update msg model =
|
||||
-- case Debug.log "msg" msg of
|
||||
case msg of
|
||||
YearOfBirthChanged yearOfBirth ->
|
||||
( { model | yearOfBirth = Just yearOfBirth }
|
||||
, Cmd.none
|
||||
|
@ -57,7 +57,8 @@ subscriptions _ =
|
||||
|
||||
|
||||
update : Msg -> Model -> ( Model, Cmd Msg )
|
||||
update message model =
|
||||
case message of
|
||||
update msg model =
|
||||
-- case Debug.log "msg" msg of
|
||||
case msg of
|
||||
NoOp ->
|
||||
( model, Cmd.none )
|
||||
|
@ -53,7 +53,8 @@ subscriptions _ =
|
||||
|
||||
|
||||
update : Msg -> Model -> ( Model, Cmd Msg )
|
||||
update message model =
|
||||
case message of
|
||||
update msg model =
|
||||
-- case Debug.log "msg" msg of
|
||||
case msg of
|
||||
NoOp ->
|
||||
( model, Cmd.none )
|
||||
|
Loading…
Reference in New Issue
Block a user