feat: collapse rsx

This commit is contained in:
Jonathan Kelley 2022-02-18 23:18:52 -05:00
parent 9438cc14bc
commit 5d56326f74

View file

@ -88,24 +88,6 @@ impl Parse for Element {
tokens: content.parse()?,
},
});
// if content.fork().parse::<ExprClosure>().is_ok() {
// //
// attributes.push(ElementAttrNamed {
// el_name: el_name.clone(),
// attr: ElementAttr::EventClosure {
// name,
// closure: content.parse()?,
// },
// });
// } else {
// attributes.push(ElementAttrNamed {
// el_name: el_name.clone(),
// attr: ElementAttr::EventTokens {
// name,
// tokens: content.parse()?,
// },
// });
// }
} else {
match name_str.as_str() {
"key" => {
@ -199,7 +181,6 @@ impl Parse for Element {
name: el_name,
attributes,
children,
// listeners,
_is_static: false,
})
}