Closed blond closed 8 years ago
now need use try..catch:
try..catch
try { var str = bemNaming.stringify({ elem: 'elem' }); } catch(e) { /* ... */ }
it will be easier to check for an empty string:
var str = bemNaming.stringify({ elem: 'elem' }); if (str) { /* ... */ }
I think semantically it should be undefined (like in sentence «BEM entity is undefined»)
undefined
yep, it's better
now need use
try..catch
:it will be easier to check for an empty string: