Skip to content

Commit

Permalink
improve field names for forwarding (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasplesch authored Dec 11, 2024
1 parent 2c4982e commit 5cdd18f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/util/protos/ProtoDeclaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,12 @@ x3dom.ProtoDeclaration.prototype.registerNode = function ()

_normalizeName : function ( name, node )
{
if ( name in node._vf )
var stripped = name.replace( /^set_/, "" ).replace( /_changed$/, "" );
if ( stripped in node._vf )
{
return name;
return stripped;
}
return name.replace( /^set_/, "" ).replace( /_changed$/, "" );
return name;
},

_setupFieldWatchers : function ( field )
Expand Down

0 comments on commit 5cdd18f

Please sign in to comment.