popup: rethinking and refactoring (close #226)
Merge pull request #291 from bem/issues/226@v2

popup: rethinking and refactoring (close #226)