Sfoglia il codice sorgente

feat: collapse rsx

Jonathan Kelley 3 anni fa
parent
commit
5d56326f74
1 ha cambiato i file con 0 aggiunte e 19 eliminazioni
  1. 0 19
      packages/rsx/src/element.rs

+ 0 - 19
packages/rsx/src/element.rs

@@ -88,24 +88,6 @@ impl Parse for Element {
                             tokens: content.parse()?,
                             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 {
                 } else {
                     match name_str.as_str() {
                     match name_str.as_str() {
                         "key" => {
                         "key" => {
@@ -199,7 +181,6 @@ impl Parse for Element {
             name: el_name,
             name: el_name,
             attributes,
             attributes,
             children,
             children,
-            // listeners,
             _is_static: false,
             _is_static: false,
         })
         })
     }
     }