Skip to content

Commit 0616013

Browse files
authored
WebXRManager: Clean up. (#24015)
1 parent 65ffdea commit 0616013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/webxr/WebXRManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class WebXRManager extends EventDispatcher {
121121

122122
const controller = inputSourcesMap.get( event.inputSource );
123123

124-
if ( controller ) {
124+
if ( controller !== undefined ) {
125125

126126
controller.dispatchEvent( { type: event.type, data: event.inputSource } );
127127

@@ -133,7 +133,7 @@ class WebXRManager extends EventDispatcher {
133133

134134
inputSourcesMap.forEach( function ( controller, inputSource ) {
135135

136-
if ( controller ) {
136+
if ( controller !== undefined ) {
137137

138138
controller.disconnect( inputSource );
139139

0 commit comments

Comments
 (0)