From 13ed830f3bd13fcd10ecdc9bd06c2448d7317e9f Mon Sep 17 00:00:00 2001 From: Stefano Pezzino Date: Fri, 30 Sep 2016 22:38:04 -0400 Subject: [PATCH] #491 Add proper javadoc comments to core/lib/style_modifier_hunter.js --- core/lib/style_modifier_hunter.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/lib/style_modifier_hunter.js b/core/lib/style_modifier_hunter.js index 8c0b7413f..675142bb7 100644 --- a/core/lib/style_modifier_hunter.js +++ b/core/lib/style_modifier_hunter.js @@ -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;