Skip to content

Commit

Permalink
fix: add missing events array on instance creation
Browse files Browse the repository at this point in the history
PanelSnap would crash when trying to register or emit events because the event array was not
initialised during creation.
  • Loading branch information
guidobouman committed May 3, 2018
1 parent 9c00c2a commit e69e20d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/panelSnap.js
Expand Up @@ -40,6 +40,7 @@ export default class PanelSnap {
const panelQuery = `[data-panelsnap-id="${this.instanceIndex}"] ${this.options.panelSelector}`;
this.panelList = Array.from(document.querySelectorAll(panelQuery));

this.events = [];
this.isEnabled = true;
this.isMouseDown = false;
this.animation = null;
Expand Down

0 comments on commit e69e20d

Please sign in to comment.