Skip to content

Commit

Permalink
fix bug goofychris#483
Browse files Browse the repository at this point in the history
  • Loading branch information
aui committed Oct 13, 2017
1 parent e894696 commit f0fc2a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compile/adapter/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const extend = function (target, defaults) {

if (object) {
for (let index in target) {
if (target.hasOwnProperty(index)) {
if (Object.hasOwnProperty.call(target, index)) {
object[index] = extend(target[index], object[index]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/compile/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const FROM = `$$from`;
const OPTIONS = `$$options`;


const has = (object, key) => object.hasOwnProperty(key);
const has = (object, key) => Object.hasOwnProperty.call(object, key);
const stringify = JSON.stringify;

class Compiler {
Expand Down

0 comments on commit f0fc2a5

Please sign in to comment.