Skip to content

Commit

Permalink
Add lift function to Material.Menu.view
Browse files Browse the repository at this point in the history
  • Loading branch information
aforemny committed Jul 25, 2016
1 parent 9f7ed14 commit 2891a87
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Material/Menu.elm
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,8 @@ outlineGeometry config geometry =

{-| Component view
-}
view : Model -> List (Property Msg) -> List (Item Msg) -> Html Msg
view =
view' identity


view' : (Msg -> m) -> Model -> List (Property m) -> List (Item m) -> Html m
view' lift model properties items =
view : (Msg -> m) -> Model -> List (Property m) -> List (Item m) -> Html m
view lift model properties items =
let
summary = Options.collect defaultConfig properties
config = summary.config
Expand Down Expand Up @@ -509,7 +504,7 @@ render
-> List (Item m)
-> (Html m)
render =
Parts.create view' update .menu (\x y -> {y | menu=x}) defaultModel
Parts.create view update .menu (\x y -> {y | menu=x}) defaultModel


-- HELPERS
Expand Down

0 comments on commit 2891a87

Please sign in to comment.