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.
This commit is contained in:
kpdecker
2013-12-01 11:36:28 -06:00
parent 20b9c3829e
commit eb53f2e844
+1 -1
View File
@@ -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];
}
}