mobify/selector-utils — pull request #9 by hora (2014-12-12 01:17:30+00:00)
Title: Remove empty

Status: **Opened for visibility**
Reviewers: **@scalvert @Helen-Mobify **

## Adds:
- removeEmpty: removes empty elements in the same selection
- tests

Via @Helen-Mobify 's comment in the old PR:

Fix the removeEmpty logic:
Reverse the if condition as it was removing elements that have text

This utils should remove the element if it matches any of the following conditions:
- empty element
- contains &nbsp; or &#160;
- contains <br/> or <br>