handlebars.runtime.js in handlebars-source-4.0.7 vs handlebars.runtime.js in handlebars-source-4.0.8
- old
+ new
@@ -1,9 +1,9 @@
/**!
@license
- handlebars v4.0.7
+ handlebars v4.0.8
Copyright (C) 2011-2016 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -205,11 +205,11 @@
var _logger = __webpack_require__(19);
var _logger2 = _interopRequireDefault(_logger);
- var VERSION = '4.0.7';
+ var VERSION = '4.0.8';
exports.VERSION = VERSION;
var COMPILER_REVISION = 7;
exports.COMPILER_REVISION = COMPILER_REVISION;
var REVISION_CHANGES = {
@@ -1226,10 +1226,12 @@
if (options.fn && options.fn !== noop) {
(function () {
options.data = _base.createFrame(options.data);
// Wrapper function to get access to currentPartialBlock from the closure
var fn = options.fn;
- partialBlock = options.data['partial-block'] = function partialBlockWrapper(context, options) {
+ partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {
+ var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
+
// 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 = _base.createFrame(options.data);
options.data['partial-block'] = currentPartialBlock;
return fn(context, options);
\ No newline at end of file