Closed indutny closed 9 years ago
Please do not land it yet, investigating problems.
Ok, should be ready to go now :)
Note that it should be backported to bem-bl too.
The reason of the issue:
BEMContext
instance is reused now, but when exception happens - it could end up in a mixed state (i.e. with not reverted local
changes). Previously, BEMContext
was created on each apply()
call which had cleared the changes.
Fall back to slower version of
.apply()
if exception was thrown or theBEMHTML.apply()
was re-entered.