@@ -98,17 +98,16 @@ function VRMLParser (scene)
98
98
99
99
Object . assign ( Object . setPrototypeOf ( VRMLParser . prototype , X3DParser . prototype ) ,
100
100
{
101
- accessTypes :
102
- {
103
- field : X3DConstants . initializeOnly ,
104
- eventIn : X3DConstants . inputOnly ,
105
- eventOut : X3DConstants . outputOnly ,
106
- exposedField : X3DConstants . inputOutput ,
107
- initializeOnly : X3DConstants . initializeOnly ,
108
- inputOnly : X3DConstants . inputOnly ,
109
- outputOnly : X3DConstants . outputOnly ,
110
- inputOutput : X3DConstants . inputOutput ,
111
- } ,
101
+ accessTypes : new Map ( [
102
+ [ "field" , X3DConstants . initializeOnly ] ,
103
+ [ "eventIn" , X3DConstants . inputOnly ] ,
104
+ [ "eventOut" , X3DConstants . outputOnly ] ,
105
+ [ "exposedField" , X3DConstants . inputOutput ] ,
106
+ [ "initializeOnly" , X3DConstants . initializeOnly ] ,
107
+ [ "inputOnly" , X3DConstants . inputOnly ] ,
108
+ [ "outputOnly" , X3DConstants . outputOnly ] ,
109
+ [ "inputOutput" , X3DConstants . inputOutput ] ,
110
+ ] ) ,
112
111
SFImage : new Fields . SFImage ( ) ,
113
112
SFNode : new Fields . SFNode ( ) ,
114
113
MFString : new Fields . MFString ( ) ,
@@ -1289,7 +1288,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, X3DParser .protot
1289
1288
1290
1289
if ( this . Id ( ) )
1291
1290
{
1292
- const accessType = this . accessTypes [ this . result [ 0 ] ] ;
1291
+ const accessType = this . accessTypes . get ( this . result [ 0 ] ) ;
1293
1292
1294
1293
if ( accessType )
1295
1294
{
0 commit comments