Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit b67abfa

Browse files
committed
get rid of unnecessary remaining direct references to config.json
1 parent efb0c2f commit b67abfa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

builder/lineage_hunter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
var pa = require('./pattern_assembler');
1919
var pattern_assembler = new pa();
20-
var config = require('../config.json');
2120

2221
//find the {{> template-name }} within patterns
2322
var matches = pattern.findPartials();

builder/list_item_hunter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
pa = require('./pattern_assembler'),
1818
smh = require('./style_modifier_hunter'),
1919
plutils = require('./utilities'),
20-
config = require('../config.json'),
2120
of = require('./object_factory');
2221

2322
var pattern_assembler = new pa(),
@@ -31,7 +30,7 @@
3130
if(matches !== null){
3231
matches.forEach(function(liMatch, index, matches){
3332

34-
if(config.debug){
33+
if(patternlab.config.debug){
3534
console.log('found listItem of size ' + liMatch + ' inside ' + pattern.key);
3635
}
3736

@@ -43,7 +42,7 @@
4342
var repeatedBlockTemplate = [];
4443
var repeatedBlockHtml = '';
4544
for(var i = 0; i < items.indexOf(loopNumberString); i++){
46-
if (config.debug) {
45+
if (patternlab.config.debug) {
4746
console.log('list item(s) in pattern', pattern.patternName, 'adding', patternBlock, 'to repeatedBlockTemplate');
4847
}
4948
repeatedBlockTemplate.push(patternBlock);

0 commit comments

Comments
 (0)