diff options
author | kpdecker <kpdecker@gmail.com> | 2013-12-01 11:36:28 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-12-01 11:36:28 -0600 |
commit | eb53f2e844e126bd6fb79adecd57d7f7492addbd (patch) | |
tree | 470cf31bf57a06c238490f6f8d8a7a8428546ee8 /lib/handlebars/utils.js | |
parent | 20b9c3829e6215b3a6e7de1222be9fcee332ca1b (diff) | |
download | handlebars.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.js | 2 |
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]; } } |