summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/utils.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-12-01 11:36:28 -0600
committerkpdecker <kpdecker@gmail.com>2013-12-01 11:36:28 -0600
commiteb53f2e844e126bd6fb79adecd57d7f7492addbd (patch)
tree470cf31bf57a06c238490f6f8d8a7a8428546ee8 /lib/handlebars/utils.js
parent20b9c3829e6215b3a6e7de1222be9fcee332ca1b (diff)
downloadhandlebars.js-eb53f2e844e126bd6fb79adecd57d7f7492addbd.zip
handlebars.js-eb53f2e844e126bd6fb79adecd57d7f7492addbd.tar.gz
handlebars.js-eb53f2e844e126bd6fb79adecd57d7f7492addbd.tar.bz2
Allow extend to work with non-prototyped objects
ES6 modules do not extend the Object prototype so this blows up under the latest version of the transpiler.
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r--lib/handlebars/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js
index 65e91f9..5b4852b 100644
--- a/lib/handlebars/utils.js
+++ b/lib/handlebars/utils.js
@@ -18,7 +18,7 @@ function escapeChar(chr) {
export function extend(obj, value) {
for(var key in value) {
- if(value.hasOwnProperty(key)) {
+ if(Object.prototype.hasOwnProperty.call(value, key)) {
obj[key] = value[key];
}
}