File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,9 @@ onPage('Decks', function deckStorage() {
5555 . addClass ( 'btn btn-sm btn-danger btn-storage' ) ) ;
5656 }
5757
58- buttons . forEach ( ( button ) => {
59- container . append ( button ) ;
60- } ) ;
58+ container . append ( buttons ) ;
6159
60+ $ ( '#deckCardsCanvas' ) . prev ( 'br' ) . remove ( ) ;
6261 $ ( '#deckCardsCanvas' ) . before ( container ) ;
6362
6463 eventManager . on ( 'Deck:Soul' , loadStorage ) ;
@@ -168,14 +167,13 @@ onPage('Decks', function deckStorage() {
168167 }
169168
170169 function loadStorage ( ) {
171- buttons . forEach ( ( b , i ) => loadButton ( i ) ) ;
170+ buttons . forEach ( loadButton ) ;
172171 }
173172
174- function loadButton ( i ) {
173+ function loadButton ( button , i ) {
175174 const soul = global ( 'soul' ) ;
176175 const deckKey = getKey ( i ) ;
177176 const nameKey = `${ deckKey } .name` ;
178- const button = buttons [ i ] ;
179177 button . off ( '.deckStorage' ) ; // Remove any lingering events
180178 function refreshHover ( ) {
181179 hover . hide ( ) ;
You can’t perform that action at this time.
0 commit comments