Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v5.6.1 #1107

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading