Skip to content

Commit

Permalink
feat: expose Callback as some other code may find it useful
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Mar 5, 2024
1 parent 4c642c2 commit 0e6d3e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/dom/web_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn declare_custom_element_function() -> js_sys::Function {

impl<COMP, MSG> Application<MSG> for COMP
where
COMP: Container<MSG, ()> + WebComponent<MSG> + Clone + 'static,
COMP: Container<MSG, ()> + WebComponent<MSG> + 'static,
MSG: 'static,
{
fn init(&mut self) -> Cmd<Self, MSG> {
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/vdom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub use attribute::Attribute;
pub use element::Element;
pub use leaf::Leaf;
pub use node_trait::NodeTrait;
pub use attribute::callback;

mod attribute;
mod element;
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/vdom/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub use style::Style;
pub use value::Value;

mod attribute_value;
mod callback;
pub mod callback;
mod style;
mod value;

Expand Down
2 changes: 1 addition & 1 deletion crates/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ mod node;
/// pub fn view(&self) -> Node<()> {
/// node! {
/// <ul>
/// {for item in &self.items {
/// {for item in self.items.iter() {
/// text(item)
/// }}
/// </ul>
Expand Down

0 comments on commit 0e6d3e2

Please sign in to comment.