File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
frameworks/keyed/destam-dom/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ const App = () => {
57
57
const dom =
58
58
< tr class = { selected . map ( sel => sel === dom ? "danger" : "" ) } >
59
59
< td class = 'col-md-1' $textContent = { idCounter ++ } />
60
- < td class = 'col-md-4' > < a $clickHandler = { 1 } $textContent = { label } /> </ td >
61
- < td class = 'col-md-1' > < a $clickHandler = { 2 } > < span class = 'glyphicon glyphicon-remove' aria-hidden = "true" /> </ a > </ td >
60
+ < td class = 'col-md-4' > < a $clickHandler = { select } $textContent = { label } /> </ td >
61
+ < td class = 'col-md-1' > < a $clickHandler = { remove } > < span class = 'glyphicon glyphicon-remove' aria-hidden = "true" /> </ a > </ td >
62
62
< td class = 'col-md-6' />
63
63
</ tr > ;
64
64
@@ -90,9 +90,7 @@ const App = () => {
90
90
}
91
91
92
92
if ( ! handler ) return ;
93
-
94
- let i = Array . prototype . indexOf . call ( e . parentElement . children , e ) ;
95
- [ null , select , remove ] [ handler ] ( i ) ;
93
+ handler ( Array . prototype . indexOf . call ( e . parentElement . children , e ) ) ;
96
94
} } >
97
95
{ array }
98
96
</ tbody > </ table >
You can’t perform that action at this time.
0 commit comments