Skip to content

Commit 2475cac

Browse files
#1143: Change property to proper name
1 parent ffcd615 commit 2475cac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/core/src/lib/object_factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const prefixMatcher = /^_?(\d+-)?/;
2121
* @param {String} relPath relative directory
2222
* @param {Object} jsonFileData The JSON used to render values in the pattern.
2323
* @param {Patternlab} patternlab The actual patternlab instance
24-
* @param {Boolean} isUnsubRun specifies if the pattern needs to be unsubbed from its folder
24+
* @param {Boolean} isUnsubRun specifies if the pattern needs to be removed from its subfolder
2525
*/
2626
const Pattern = function(relPath, jsonFileData, patternlab, isUnsubRun) {
2727
this.relPath = path.normalize(relPath); // '00-atoms/00-global/00-colors.mustache'
@@ -271,14 +271,14 @@ Pattern.prototype = {
271271

272272
/**
273273
* Info contains information about pattern structure if it is a nested pattern
274-
* or if it just a subbed folder structure. Its just used for internal purposes.
274+
* or if it just a subfolder structure. Its just used for internal purposes.
275275
* Remember every pattern infomarion based on "this.*" will be used by other functions
276276
*
277277
* @param pathObj path.parse() object containing usefull path information
278278
*/
279279
getPatternInfo: (pathObj, patternlab, isUnsubRun) => {
280280
const info = {
281-
// 00-colors(.mustache) is subbed in 00-atoms-/00-global/00-colors
281+
// 00-colors(.mustache) is subfolder in 00-atoms-/00-global/00-colors
282282
patternlab: patternlab,
283283
patternHasOwnDir: !isUnsubRun
284284
? path.basename(pathObj.dir).replace(prefixMatcher, '') ===

packages/core/src/lib/readDocumentation.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ module.exports = function(pattern, patternlab) {
5555
pattern.links = markdownObject.links;
5656
}
5757

58-
if (markdownObject.hasOwnProperty('subbed') && !markdownObject.subbed) {
58+
if (
59+
markdownObject.hasOwnProperty('subfolder') &&
60+
!markdownObject.subfolder
61+
) {
5962
// Reset to pattern without own pattern-directory
6063
pattern.resetSubbing(patternlab);
6164
}

0 commit comments

Comments
 (0)