Merge branch '4.x' into wycats-master

# Conflicts:
#	package.json
This commit is contained in:
Nils Knappmeier
2017-05-13 01:00:35 +02:00
7 changed files with 37 additions and 11 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import {registerDefaultHelpers} from './helpers';
import {registerDefaultDecorators} from './decorators';
import logger from './logger';
export const VERSION = '4.0.7';
export const VERSION = '4.0.8';
export const COMPILER_REVISION = 7;
export const REVISION_CHANGES = {
+2 -1
View File
@@ -221,7 +221,8 @@ export function invokePartial(partial, context, options) {
options.data = createFrame(options.data);
// Wrapper function to get access to currentPartialBlock from the closure
let fn = options.fn;
partialBlock = options.data['partial-block'] = function partialBlockWrapper(context, options) {
partialBlock = options.data['partial-block'] = function partialBlockWrapper(context, options = {}) {
// Restore the partial-block from the closure for the execution of the block
// i.e. the part inside the block of the partial call.
options.data = createFrame(options.data);