Skip to content

Commit 0e19c66

Browse files
committed
add an empty patternState
1 parent bd771d9 commit 0e19c66

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/lib/object_factory.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var Pattern = function (relPath, data) {
4646
// name of the pattern. UPDATE: this.key is now known as this.patternPartial
4747
this.patternPartial = this.patternGroup + '-' + this.patternBaseName;
4848

49+
this.patternState = '';
4950
this.template = '';
5051
this.patternPartialCode = '';
5152
this.lineage = [];

test/object_factory_tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
test.equals(p.lineageIndex.length, 0);
2727
test.equals(p.lineageR.length, 0);
2828
test.equals(p.lineageRIndex.length, 0);
29+
test.equals(p.patternState, '');
2930
test.done();
3031
},
3132
'test Pattern with one-directory subdir works as expected' : function (test) {

0 commit comments

Comments
 (0)