Skip to content

Commit 07e270a

Browse files
Merge pull request #496 from spezzino/issue/491
#491 Add proper javadoc comments to core/lib/style_modifier_hunter.js
2 parents da064bf + 13ed830 commit 07e270a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/lib/style_modifier_hunter.js

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
var style_modifier_hunter = function () {
44

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

0 commit comments

Comments
 (0)