Skip to content

Commit

Permalink
Merge branch '4.x'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Gruntfile.js
#	lib/handlebars/exception.js
#	spec/partials.js
#	spec/regressions.js
  • Loading branch information
nknapp committed Mar 9, 2017
1 parent 1130b5d commit 84ed1f5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/handlebars/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,7 @@ export function wrapProgram(container, i, fn, data, declaredBlockParams, blockPa
export function resolvePartial(partial, context, options) {
if (!partial) {
if (options.name === '@partial-block') {
let data = options.data;
while (data['partial-block'] === noop) {
data = data._parent;
}
partial = data['partial-block'];
data['partial-block'] = noop;
partial = options.data['partial-block'];
} else {
partial = options.partials[options.name];
}
Expand Down

0 comments on commit 84ed1f5

Please sign in to comment.