Skip to content

Commit

Permalink
gsuiDrums: no need data-order
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Aug 18, 2024
1 parent 2b4ebd7 commit ce29a1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gsuiDrums/gsuiDrums.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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":
Expand Down Expand Up @@ -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" );

Expand Down

0 comments on commit ce29a1a

Please sign in to comment.