Skip to content

Commit

Permalink
release v4.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Dec 6, 2024
1 parent 6e687ee commit 4ccacea
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions dist/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ var nativeFilter = arrayProto.filter;
var nativeSlice = arrayProto.slice;
var nativeMap = arrayProto.map;
var nativeReduce = arrayProto.reduce;
var protoKey = '__proto__';

// Avoid assign to an exported variable, for transforming to cjs.
var methods = {};
Expand Down Expand Up @@ -297,7 +298,7 @@ function clone(source) {
else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {
result = {};
for (var key in source) {
if (source.hasOwnProperty(key)) {
if (source.hasOwnProperty(key) && key !== protoKey) {
result[key] = clone(source[key]);
}
}
Expand All @@ -320,7 +321,7 @@ function merge(target, source, overwrite) {
}

for (var key in source) {
if (source.hasOwnProperty(key)) {
if (source.hasOwnProperty(key) && key !== protoKey) {
var targetProp = target[key];
var sourceProp = source[key];

Expand Down Expand Up @@ -369,7 +370,7 @@ function mergeAll(targetAndSources, overwrite) {
*/
function extend(target, source) {
for (var key in source) {
if (source.hasOwnProperty(key)) {
if (source.hasOwnProperty(key) && key !== protoKey) {
target[key] = source[key];
}
}
Expand All @@ -384,7 +385,7 @@ function extend(target, source) {
*/
function defaults(target, source, overlay) {
for (var key in source) {
if (source.hasOwnProperty(key)
if (source.hasOwnProperty(key) && key !== protoKey
&& (overlay ? source[key] != null : target[key] == null)
) {
target[key] = source[key];
Expand Down Expand Up @@ -11546,7 +11547,7 @@ var instances = {}; // ZRender实例map索引
/**
* @type {string}
*/
var version = '4.3.2';
var version = '4.3.3';

/**
* Initializing a zrender instance
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.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zrender",
"version": "4.3.2",
"version": "4.3.3",
"description": "A lightweight canvas library.",
"keywords": [
"canvas",
Expand Down
2 changes: 1 addition & 1 deletion src/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var instances = {}; // ZRender实例map索引
/**
* @type {string}
*/
export var version = '4.3.2';
export var version = '4.3.3';

/**
* Initializing a zrender instance
Expand Down

0 comments on commit 4ccacea

Please sign in to comment.