Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#491 Add proper javadoc comments to core/lib/style_modifier_hunter.js #496

Merged
merged 2 commits into from
Oct 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/lib/style_modifier_hunter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

var style_modifier_hunter = function () {

/**
* Modifies a partial based on the pattern supplied
*
* @param pattern {object} the pattern to extend
* @param partial {string} class name
* @param patternlab {object} the patternlab instance
*/
function consumestylemodifier(pattern, partial, patternlab) {
//extract the classname from the stylemodifier which comes in the format of :className
var styleModifier = partial.match(/:([\w\-_|])+/g) ? partial.match(/:([\w\-_|])+/g)[0].slice(1) : null;
Expand Down