File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
2
2
3
3
PL-node-v0.11.0
4
4
- ADD: Ignore pattern directories that start with an underscore.
5
+ - FIX: Resolved issue where pattern parameter data bled into global data object
5
6
6
7
PL-node-v0.10.1
7
8
- ADD: Added more unit tests for recently more-modular code
Original file line number Diff line number Diff line change 41
41
42
42
//compile this partial immeadiately, essentially consuming it.
43
43
var partialPattern = pattern_assembler . get_pattern_by_key ( partialName , patternlab ) ;
44
- var existingData = pattern . data || patternlab . data ;
44
+ var existingData = pattern . data ? JSON . parse ( JSON . stringify ( pattern . data ) ) : JSON . parse ( JSON . stringify ( patternlab . data ) ) ;
45
45
46
46
//merge paramData with any other data that exists.
47
47
for ( var prop in paramData ) {
48
48
if ( existingData . hasOwnProperty ( prop ) ) {
49
49
existingData [ prop ] = paramData [ prop ] ;
50
- }
50
+ }
51
51
}
52
52
53
53
//extend pattern data links into link for pattern link shortcuts to work. we do this locally and globally
You can’t perform that action at this time.
0 commit comments