handlebars.runtime.js in handlebars-source-4.0.3 vs handlebars.runtime.js in handlebars-source-4.0.4
- old
+ new
@@ -1,8 +1,8 @@
/*!
- handlebars v4.0.3
+ handlebars v4.0.4
Copyright (C) 2011-2015 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
@@ -167,11 +167,11 @@
var _logger = __webpack_require__(11);
var _logger2 = _interopRequireDefault(_logger);
- var VERSION = '4.0.3';
+ var VERSION = '4.0.4';
exports.VERSION = VERSION;
var COMPILER_REVISION = 7;
exports.COMPILER_REVISION = COMPILER_REVISION;
var REVISION_CHANGES = {
@@ -219,10 +219,10 @@
registerPartial: function registerPartial(name, partial) {
if (_utils.toString.call(name) === objectType) {
_utils.extend(this.partials, name);
} else {
if (typeof partial === 'undefined') {
- throw new _exception2['default']('Attempting to register a partial as undefined');
+ throw new _exception2['default']('Attempting to register a partial called "' + name + '" as undefined');
}
this.partials[name] = partial;
}
},
unregisterPartial: function unregisterPartial(name) {
\ No newline at end of file