Skip to content

Commit

Permalink
docs: Remove use of AfterMount in ElRef example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-PH authored and MartinKavik committed Jul 7, 2020
1 parent 6238190 commit 38f6c20
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/virtual_dom/el_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,9 @@ pub fn el_ref<E: Clone>(reference: &ElRef<E>) -> ElRef<E> {
/// fn view(model: &Model) -> impl IntoNodes<Msg> {
/// canvas![
/// el_ref(&model.canvas),
/// attrs![
/// At::Width => px(200),
/// At::Height => px(100),
/// ],
/// attrs![ /* ... */ ],
/// ]
/// }
///
/// fn after_mount(_: Url, orders: &mut impl Orders<Msg>) -> AfterMount<Model> {
/// orders.after_next_render(|_| Msg::Rendered);
/// // ...
///}
///
/// fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
/// match msg {
Expand Down

0 comments on commit 38f6c20

Please sign in to comment.