Adam Shaw 7 år sedan
förälder
incheckning
55e16de3f3
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/util/object.ts

+ 1 - 1
src/util/object.ts

@@ -8,7 +8,7 @@ export function assignTo(target, ...sources) {
     if (source != null) { // skip over if undefined or null
       for (let key in source) {
         // avoid bugs when hasOwnProperty is shadowed
-        if (Object.prototype.hasOwnProperty.call(source, key)) {
+        if (hasOwnProp(source, key)) {
           target[key] = source[key]
         }
       }