diff --git a/packages/core/src/create.rs b/packages/core/src/create.rs index 4e2d8f0a2..30ee00f41 100644 --- a/packages/core/src/create.rs +++ b/packages/core/src/create.rs @@ -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 {