mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
remove some commented out code
This commit is contained in:
parent
613a7ac55b
commit
87ff41f213
1 changed files with 0 additions and 35 deletions
|
@ -292,41 +292,6 @@ impl<'b> VirtualDom {
|
|||
// Safety: we promise not to re-alias this text later on after committing it to the mutation
|
||||
let unbounded_name: &str = unsafe { std::mem::transmute(attribute.name) };
|
||||
|
||||
// match &attribute.value {
|
||||
// AttributeValue::Text(value) => {
|
||||
// // Safety: we promise not to re-alias this text later on after committing it to the mutation
|
||||
// let unbounded_value: &str = unsafe { std::mem::transmute(*value) };
|
||||
|
||||
// self.mutations.push(SetAttribute {
|
||||
// name: unbounded_name,
|
||||
// value: unbounded_value,
|
||||
// ns: attribute.namespace,
|
||||
// id,
|
||||
// })
|
||||
// }
|
||||
// AttributeValue::Bool(value) => self.mutations.push(SetBoolAttribute {
|
||||
// name: unbounded_name,
|
||||
// value: *value,
|
||||
// id,
|
||||
// }),
|
||||
// AttributeValue::Listener(_) => {
|
||||
// self.mutations.push(NewEventListener {
|
||||
// // all listeners start with "on"
|
||||
// name: &unbounded_name[2..],
|
||||
// id,
|
||||
// })
|
||||
// }
|
||||
// _ => {
|
||||
|
||||
// }
|
||||
// AttributeValue::Float(_) => todo!(),
|
||||
// AttributeValue::Int(_) => todo!(),
|
||||
// AttributeValue::Any() => todo!(),
|
||||
// AttributeValue::None => todo!(),
|
||||
// }
|
||||
|
||||
// Safety: we promise not to re-alias this text later on after committing it to the mutation
|
||||
|
||||
match &attribute.value {
|
||||
AttributeValue::Listener(_) => {
|
||||
self.mutations.push(NewEventListener {
|
||||
|
|
Loading…
Reference in a new issue