Skip to content

Commit

Permalink
fix(domMethod): removeEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Sep 5, 2018
1 parent b9aa5f4 commit 0d404bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/common/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ class DOM {
removeEmpty(element) {
const parent = element.parentElement
const type = this.componentType(element)
const children = parent.getElementsByClassName('stage-' + type)
const children = parent.getElementsByClassName(`stage-${type}s`)
this.remove(element)
if (!children.length) {
if (!this.isStage(parent)) {
Expand Down

0 comments on commit 0d404bc

Please sign in to comment.