From ce29a1a387afa1a27194047c56247dc63781e94e Mon Sep 17 00:00:00 2001 From: mr21 Date: Sun, 18 Aug 2024 02:37:06 +0200 Subject: [PATCH] gsuiDrums: no need data-order --- gsuiDrums/gsuiDrums.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsuiDrums/gsuiDrums.js b/gsuiDrums/gsuiDrums.js index 5047a67d..88cfeae1 100644 --- a/gsuiDrums/gsuiDrums.js +++ b/gsuiDrums/gsuiDrums.js @@ -140,7 +140,7 @@ class gsuiDrums extends gsui0ne { gsuiReorder.listReorder( this.#elLines, obj ); } $addDrumrow( rowId ) { - const elLine = this.#createDrumrow( rowId ); + const elLine = this.#createDrumrowLine( rowId ); elLine.dataset.id = rowId; this.#drumrows.$add( rowId ); @@ -156,7 +156,7 @@ class gsuiDrums extends gsui0ne { $changeDrumrow( rowId, prop, val ) { switch ( prop ) { case "order": - this.querySelector( `gsui-drumrow[data-id="${ rowId }"]` ).dataset.order = val; + GSUsetAttribute( this.querySelector( `gsui-drumrow[data-id="${ rowId }"]` ), "order", val ); this.#linesMap.get( rowId ).dataset.order = val; break; case "toggle": @@ -192,7 +192,7 @@ class gsuiDrums extends gsui0ne { $removeDrumcut( id ) { this.#removeItem( id ); } - #createDrumrow( id ) { + #createDrumrowLine( id ) { const elLine = GSUgetTemplate( "gsui-drums-line" ); const grp = elLine.querySelector( "gsui-slidergroup" );