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