Skip to content

Commit e03b785

Browse files
committed
1 parent ff0995b commit e03b785

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-tween-one",
3-
"version": "2.2.20",
3+
"version": "2.2.21",
44
"description": "tween-one anim component for react",
55
"keywords": [
66
"react",

src/util.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ export function objectEqual(obj1, obj2) {
8181

8282
const setEqualBool = (objA, objB) => {
8383
Object.keys(objA).forEach(key => {
84+
// 如果前面有参数匹配不相同则直接返回;
85+
if (!equalBool) {
86+
return;
87+
}
8488
if (!(key in objB)) {
8589
equalBool = false;
8690
}

0 commit comments

Comments
 (0)