Explorar o código

fix: property binding should not fall back to root node on incorrect path names (#25329)

hybridherbst %!s(int64=2) %!d(string=hai) anos
pai
achega
5da06be656
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/animation/PropertyBinding.js

+ 2 - 2
src/animation/PropertyBinding.js

@@ -107,7 +107,7 @@ class PropertyBinding {
 		this.path = path;
 		this.parsedPath = parsedPath || PropertyBinding.parseTrackName( path );
 
-		this.node = PropertyBinding.findNode( rootNode, this.parsedPath.nodeName ) || rootNode;
+		this.node = PropertyBinding.findNode( rootNode, this.parsedPath.nodeName );
 
 		this.rootNode = rootNode;
 
@@ -423,7 +423,7 @@ class PropertyBinding {
 
 		if ( ! targetObject ) {
 
-			targetObject = PropertyBinding.findNode( this.rootNode, parsedPath.nodeName ) || this.rootNode;
+			targetObject = PropertyBinding.findNode( this.rootNode, parsedPath.nodeName );
 
 			this.node = targetObject;