Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commita7658e0

Browse files
KaelWDyyx990803
authored andcommitted
fix(data): skip recursive call if values are identical (vuejs#8967)
1 parent05001e6 commita7658e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/core/util/options.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ function mergeData (to: Object, from: ?Object): Object {
5555
fromVal=from[key]
5656
if(!hasOwn(to,key)){
5757
set(to,key,fromVal)
58-
}elseif(isPlainObject(toVal)&&isPlainObject(fromVal)){
58+
}elseif(
59+
toVal!==fromVal&&
60+
isPlainObject(toVal)&&
61+
isPlainObject(fromVal)
62+
){
5963
mergeData(toVal,fromVal)
6064
}
6165
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp