Skip to content

Commit

Permalink
tabs -> spaces ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatliner committed Jun 30, 2017
1 parent 3023cf7 commit ed78381
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/js/vex.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -1428,12 +1428,12 @@ var vex = {
}
// Run once
this.rootEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
// Remove from lookup table (prevent memory leaks)
delete vexes[this.id]
// Remove the dialog from the DOM
this.rootEl.parentNode.removeChild(this.rootEl)
// Remove the overlay from the DOM
// Remove the overlay from the DOM
this.bodyEl.removeChild(this.overlayEl);
// Call after close callback
if (options.afterClose) {
Expand All @@ -1449,10 +1449,10 @@ var vex = {
if (animationEndEvent && hasAnimation) {
// Setup the end event listener, to remove the el from the DOM
this.rootEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
// Add the closing class to the dialog, showing the close animation
this.rootEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
} else {
close()
}
Expand Down
8 changes: 4 additions & 4 deletions dist/js/vex.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,12 @@ var vex = {
}
// Run once
this.rootEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
// Remove from lookup table (prevent memory leaks)
delete vexes[this.id]
// Remove the dialog from the DOM
this.rootEl.parentNode.removeChild(this.rootEl)
// Remove the overlay from the DOM
// Remove the overlay from the DOM
this.bodyEl.removeChild(this.overlayEl);
// Call after close callback
if (options.afterClose) {
Expand All @@ -574,10 +574,10 @@ var vex = {
if (animationEndEvent && hasAnimation) {
// Setup the end event listener, to remove the el from the DOM
this.rootEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
// Add the closing class to the dialog, showing the close animation
this.rootEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
} else {
close()
}
Expand Down
8 changes: 4 additions & 4 deletions src/vex.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ var vex = {
}
// Run once
this.rootEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
this.overlayEl.removeEventListener(animationEndEvent, close)
// Remove from lookup table (prevent memory leaks)
delete vexes[this.id]
// Remove the dialog from the DOM
this.rootEl.parentNode.removeChild(this.rootEl)
// Remove the overlay from the DOM
// Remove the overlay from the DOM
this.bodyEl.removeChild(this.overlayEl);
// Call after close callback
if (options.afterClose) {
Expand All @@ -168,10 +168,10 @@ var vex = {
if (animationEndEvent && hasAnimation) {
// Setup the end event listener, to remove the el from the DOM
this.rootEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
this.overlayEl.addEventListener(animationEndEvent, close)
// Add the closing class to the dialog, showing the close animation
this.rootEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
this.overlayEl.classList.add(baseClassNames.closing)
} else {
close()
}
Expand Down

0 comments on commit ed78381

Please sign in to comment.