@@ -60,71 +60,39 @@ export function* convertAttributes(
60
60
yield convertAttribute ( attr , parent , ctx ) ;
61
61
continue ;
62
62
}
63
- if ( attr . type === "SpreadAttribute" ) {
63
+ if ( attr . type === "SpreadAttribute" || attr . type === "Spread" ) {
64
64
yield convertSpreadAttribute ( attr , parent , ctx ) ;
65
65
continue ;
66
66
}
67
- if ( attr . type === "Spread" ) {
68
- yield convertSpreadAttribute ( attr , parent , ctx ) ;
69
- continue ;
70
- }
71
- if ( attr . type === "BindDirective" ) {
72
- yield convertBindingDirective ( attr , parent , ctx ) ;
73
- continue ;
74
- }
75
- if ( attr . type === "Binding" ) {
67
+ if ( attr . type === "BindDirective" || attr . type === "Binding" ) {
76
68
yield convertBindingDirective ( attr , parent , ctx ) ;
77
69
continue ;
78
70
}
79
- if ( attr . type === "OnDirective" ) {
71
+ if ( attr . type === "OnDirective" || attr . type === "EventHandler" ) {
80
72
yield convertEventHandlerDirective ( attr , parent , ctx ) ;
81
73
continue ;
82
74
}
83
- if ( attr . type === "EventHandler" ) {
84
- yield convertEventHandlerDirective ( attr , parent , ctx ) ;
85
- continue ;
86
- }
87
- if ( attr . type === "ClassDirective" ) {
88
- yield convertClassDirective ( attr , parent , ctx ) ;
89
- continue ;
90
- }
91
- if ( attr . type === "Class" ) {
75
+ if ( attr . type === "ClassDirective" || attr . type === "Class" ) {
92
76
yield convertClassDirective ( attr , parent , ctx ) ;
93
77
continue ;
94
78
}
95
79
if ( attr . type === "StyleDirective" ) {
96
80
yield convertStyleDirective ( attr , parent , ctx ) ;
97
81
continue ;
98
82
}
99
- if ( attr . type === "TransitionDirective" ) {
83
+ if ( attr . type === "TransitionDirective" || attr . type === "Transition" ) {
100
84
yield convertTransitionDirective ( attr , parent , ctx ) ;
101
85
continue ;
102
86
}
103
- if ( attr . type === "Transition" ) {
104
- yield convertTransitionDirective ( attr , parent , ctx ) ;
105
- continue ;
106
- }
107
- if ( attr . type === "AnimateDirective" ) {
108
- yield convertAnimationDirective ( attr , parent , ctx ) ;
109
- continue ;
110
- }
111
- if ( attr . type === "Animation" ) {
87
+ if ( attr . type === "AnimateDirective" || attr . type === "Animation" ) {
112
88
yield convertAnimationDirective ( attr , parent , ctx ) ;
113
89
continue ;
114
90
}
115
- if ( attr . type === "UseDirective" ) {
91
+ if ( attr . type === "UseDirective" || attr . type === "Action" ) {
116
92
yield convertActionDirective ( attr , parent , ctx ) ;
117
93
continue ;
118
94
}
119
- if ( attr . type === "Action" ) {
120
- yield convertActionDirective ( attr , parent , ctx ) ;
121
- continue ;
122
- }
123
- if ( attr . type === "LetDirective" ) {
124
- yield convertLetDirective ( attr , parent , ctx ) ;
125
- continue ;
126
- }
127
- if ( attr . type === "Let" ) {
95
+ if ( attr . type === "LetDirective" || attr . type === "Let" ) {
128
96
yield convertLetDirective ( attr , parent , ctx ) ;
129
97
continue ;
130
98
}
0 commit comments