Skip to content

Commit

Permalink
Fix the build!
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstraw committed Jan 7, 2016
1 parent 14bc5a4 commit 0685f25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/js/Lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ export default class Lightbox {
this.el.removeEventListener('animationend', this._completeOpen, false);

removeClasses(this.el, this.openingClasses);
}
};

_completeClose = () => {
this.el.removeEventListener('animationend', this._completeClose, false);

removeClasses(this.el, this.openClasses);
removeClasses(this.el, this.closingClasses);
}
};

destroy() {
this.settings.parentEl.removeChild(this.el);
Expand Down
8 changes: 4 additions & 4 deletions src/js/Luminous.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class Luminous {
}

this.isOpen = true;
}
};

close = (e) => {
if (e && typeof e.preventDefault === 'function') {
Expand All @@ -91,7 +91,7 @@ export default class Luminous {
}

this.isOpen = false;
}
};

_buildLightbox() {
this.lightbox = new Lightbox({
Expand Down Expand Up @@ -129,12 +129,12 @@ export default class Luminous {
if (this.isOpen && e.keyCode === 27) {
this.close();
}
}
};

destroy = () => {
this._unbindEvents();
this.lightbox.destroy();
}
};
}

global.Luminous = Luminous;

0 comments on commit 0685f25

Please sign in to comment.