Skip to content

Commit

Permalink
release: v5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Dec 10, 2024
1 parent 07a3ace commit b9156fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dist/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
}
function defaults(target, source, overlay) {
var keysArr = keys(source);
for (var i = 0; i < keysArr.length; i++) {
for (var i = 0, len = keysArr.length; i < len; i++) {
var key = keysArr[i];
if ((overlay ? source[key] != null : target[key] == null)) {
target[key] = source[key];
Expand Down Expand Up @@ -368,7 +368,7 @@
}
else {
for (var key in arr) {
if (arr.hasOwnProperty(key)) {
if (arr.hasOwnProperty(key) && key !== protoKey) {
cb.call(context, arr[key], key, arr);
}
}
Expand Down Expand Up @@ -436,11 +436,11 @@
return [];
}
if (Object.keys) {
return Object.keys(obj);
return filter(Object.keys(obj), function (key) { return key !== protoKey; });
}
var keyList = [];
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
if (obj.hasOwnProperty(key) && key !== protoKey) {
keyList.push(key);
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zrender.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/zrender.min.js

Large diffs are not rendered by default.

0 comments on commit b9156fc

Please sign in to comment.