Skip to content

Commit

Permalink
Merge pull request #1107 from ecomfe/release-dev
Browse files Browse the repository at this point in the history
Release v5.6.1
  • Loading branch information
plainheart authored Dec 10, 2024
2 parents 45df132 + 6eb0c73 commit 7bbbdbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
}
else {
for (var key in arr) {
if (arr.hasOwnProperty(key) && key !== protoKey) {
if (arr.hasOwnProperty(key)) {
cb.call(context, arr[key], key, arr);
}
}
Expand Down Expand Up @@ -436,11 +436,11 @@
return [];
}
if (Object.keys) {
return filter(Object.keys(obj), function (key) { return key !== protoKey; });
return Object.keys(obj);
}
var keyList = [];
for (var key in obj) {
if (obj.hasOwnProperty(key) && key !== protoKey) {
if (obj.hasOwnProperty(key)) {
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.

6 changes: 3 additions & 3 deletions src/core/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export function each<I extends Dictionary<any> | any[] | readonly any[] | ArrayL
}
else {
for (let key in arr) {
if (arr.hasOwnProperty(key) && key !== protoKey) {
if (arr.hasOwnProperty(key)) {
cb.call(context, (arr as Dictionary<any>)[key], key as any, arr);
}
}
Expand Down Expand Up @@ -436,11 +436,11 @@ export function keys<T extends object>(obj: T): (KeyOfDistributive<T> & string)[
// `Object.keys` only return string rather than `number | string`.
type TKeys = KeyOfDistributive<T> & string;
if (Object.keys) {
return filter(Object.keys(obj) as TKeys[], key => key !== protoKey);
return Object.keys(obj) as TKeys[];
}
let keyList: TKeys[] = [];
for (let key in obj) {
if (obj.hasOwnProperty(key) && key !== protoKey) {
if (obj.hasOwnProperty(key)) {
keyList.push(key as any);
}
}
Expand Down

0 comments on commit 7bbbdbe

Please sign in to comment.