소스 검색

feat: collapse rsx

Jonathan Kelley 3 년 전
부모
커밋
5d56326f74
1개의 변경된 파일0개의 추가작업 그리고 19개의 파일을 삭제
  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()?,
                         },
                     });
-                    // 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,
         })
     }