Browse Source

CTRLPalettes now emits a global 'active_palette_color' event when a palette color button is clicked.

dev-tmpl
Bryan Miller 5 years ago
parent
commit
432fc157ad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/js/ctrls/CTRLPalettes.js

+ 1
- 1
app/js/ctrls/CTRLPalettes.js View File

@@ -131,7 +131,7 @@ class CTRLPalettes{
}
this.classList.add(CLASS_BTN_ACTIVE);
self.__activePaletteEl = this;
//self.emit("active_palette_color", i);
GlobalEvents.emit("active_palette_color", i.pi, i.ci);
}
}
}

Loading…
Cancel
Save