Browse Source

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

dev-tmpl
Bryan Miller 6 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

} }
this.classList.add(CLASS_BTN_ACTIVE); this.classList.add(CLASS_BTN_ACTIVE);
self.__activePaletteEl = this; self.__activePaletteEl = this;
//self.emit("active_palette_color", i);
GlobalEvents.emit("active_palette_color", i.pi, i.ci);
} }
} }
} }

Loading…
Cancel
Save