Skip to content

Commit d1129d3

Browse files
committed
pattern_assembler.findPartial renamed pattern_assembler.getPartial
1 parent a98808a commit d1129d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/lib/lineage_hunter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var lineage_hunter = function () {
1313
if (matches !== null) {
1414
matches.forEach(function (match) {
1515
//get the ancestorPattern
16-
var ancestorPattern = pattern_assembler.findPartial(pattern.findPartial(match), patternlab);
16+
var ancestorPattern = pattern_assembler.getPartial(pattern.findPartial(match), patternlab);
1717

1818
if (ancestorPattern && pattern.lineageIndex.indexOf(ancestorPattern.patternPartial) === -1) {
1919
//add it since it didnt exist
@@ -83,7 +83,7 @@ var lineage_hunter = function () {
8383

8484
//find all lineage - patterns being consumed by this one
8585
for (var h = 0; h < pattern.lineageIndex.length; h++) {
86-
var lineagePattern = pattern_assembler.findPartial(pattern.lineageIndex[h], patternlab);
86+
var lineagePattern = pattern_assembler.getPartial(pattern.lineageIndex[h], patternlab);
8787
setPatternState('fromFuture', lineagePattern, pattern);
8888
}
8989
}
@@ -93,7 +93,7 @@ var lineage_hunter = function () {
9393
//find all reverse lineage - that is, patterns consuming this one
9494
for (var j = 0; j < pattern.lineageRIndex.length; j++) {
9595

96-
var lineageRPattern = pattern_assembler.findPartial(pattern.lineageRIndex[j], patternlab);
96+
var lineageRPattern = pattern_assembler.getPartial(pattern.lineageRIndex[j], patternlab);
9797

9898
//only set patternState if pattern.patternState "is less than" the lineageRPattern.patternstate
9999
//or if lineageRPattern.patternstate (the consuming pattern) does not have a state

core/lib/list_item_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var list_item_hunter = function () {
8282

8383
//get the partial
8484
var partialName = foundPartials[j].match(/([\w\-\.\/~]+)/g)[0];
85-
var partialPattern = pattern_assembler.findPartial(partialName, patternlab);
85+
var partialPattern = pattern_assembler.getPartial(partialName, patternlab);
8686

8787
//create a copy of the partial so as to not pollute it after the get_pattern_by_key call.
8888
var cleanPartialPattern;

core/lib/parameter_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ var parameter_hunter = function () {
240240
pattern.parameteredPartials.forEach(function (pMatch) {
241241
//find the partial's name and retrieve it
242242
var partialName = pMatch.match(/([\w\-\.\/~]+)/g)[0];
243-
var partialPattern = pattern_assembler.findPartial(partialName, patternlab);
243+
var partialPattern = pattern_assembler.getPartial(partialName, patternlab);
244244

245245
//if we retrieved a pattern we should make sure that its extendedTemplate is reset. looks to fix #190
246246
partialPattern.extendedTemplate = partialPattern.template;

0 commit comments

Comments
 (0)