Skip to content

Commit

Permalink
Re-export web-sys
Browse files Browse the repository at this point in the history
This would allow user to use web-sys functions such
as console.log without having to add the web-sys
dependency to their Cargo.toml.
  • Loading branch information
D4nte committed May 2, 2020
1 parent 6bf58ab commit a880c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ pub mod events {
} else if #[cfg(feature = "web_sys")] {
#[doc(no_inline)]
pub use web_sys::{
DragEvent, Event, FocusEvent, KeyboardEvent, MouseEvent, PointerEvent, TouchEvent, UiEvent,
WheelEvent,
self, DragEvent, Event, FocusEvent, KeyboardEvent, MouseEvent, PointerEvent,
TouchEvent, UiEvent, WheelEvent,
};
}
}
Expand Down

0 comments on commit a880c8b

Please sign in to comment.