Skip to content

Commit c87cdfc

Browse files
committed
move isPattern declaration to the proper data level
closes pattern-lab/edition-node-gulp#12 and pattern-lab/edition-node-gulp#13
1 parent 689337a commit c87cdfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/patternlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ var patternlab_engine = function (config) {
266266
// stringify this data for individual pattern rendering and use on the styleguide
267267
// see if patternData really needs these other duped values
268268
pattern.patternData = JSON.stringify({
269-
isPattern: true,
270269
cssEnabled: false,
271270
patternLineageExists: pattern.patternLineageExists,
272271
patternLineages: pattern.patternLineages,
@@ -286,6 +285,7 @@ var patternlab_engine = function (config) {
286285

287286
//set the pattern-specific footer by compiling the general-footer with data, and then adding it to the meta footer
288287
var footerPartial = pattern_assembler.renderPattern(patternlab.footer, {
288+
isPattern: true,
289289
patternData: pattern.patternData,
290290
cacheBuster: patternlab.cacheBuster
291291
});

0 commit comments

Comments
 (0)