@ -772,7 +772,6 @@ export default class CanvasModule extends Module<CanvasConfig> {
}
refreshSpots() {
const { em, events } = this;
this.spots.refresh();
em.trigger(events.spot);
@ -11,11 +11,20 @@ export default class CanvasSpots extends ModuleCollection<CanvasSpot> {
this.on('remove', this.onRemove);
refresh() {
__trgEvent(event: string, props: ObjectAny) {
const { module } = this;
const { em } = module;
em.trigger(event, props);
module.refreshSpots();
this.refresh();
get em() {
return this.module.em;
get events() {
@ -29,7 +29,7 @@ let showOffsets: boolean;
*
*/
export default {
init(o: any) {
init() {
bindAll(this, 'onHover', 'onOut', 'onClick', 'onFrameScroll', 'onFrameUpdated', 'onContainerChange');
},