Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The stringify method should return `undefined` if impossible to stringify BEM notation. It will be easier to check for an empty string than use `try..catch`. **Before changes:** ```js try { var str = bemNaming.stringify({ elem: 'elem' }); } catch(e) { /* ... */ } ``` **After changes:** ```js var str = bemNaming.stringify({ elem: 'elem' }); if (str) { /* ... */ } ```
- Loading branch information
blond
committed
Mar 20, 2016
1 parent
87187a4
commit ce02c5f
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters