Skip to content

Commit

Permalink
gsuiOscillator: no need data-order
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Jul 21, 2024
1 parent e9d824c commit 6eb8832
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gsuiOscillator/gsuiOscillator.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,12 @@ class gsuiOscillator extends gsui0ne {
this.#updateWaveDeb();
}
static get observedAttributes() {
return [ "order", "wave", "source", "detune", "detunefine", "phaze", "gain", "pan", "unisonvoices", "unisondetune", "unisonblend" ];
return [ "wave", "source", "detune", "detunefine", "phaze", "gain", "pan", "unisonvoices", "unisondetune", "unisonblend" ];
}
$attributeChanged( prop, val ) {
const num = +val;

switch ( prop ) {
case "order": this.#changeOrder( num ); break;
case "wave": this.#changeWave( val ); break;
case "source": this.#changeSource( val ); break;
case "phaze":
Expand Down Expand Up @@ -190,9 +189,6 @@ class gsuiOscillator extends gsui0ne {
}

// .........................................................................
#changeOrder( n ) {
this.dataset.order = n;
}
#changeSource( src ) {
this.$elements.$sourceName.textContent = src;
if ( src ) {
Expand Down

0 comments on commit 6eb8832

Please sign in to comment.