Skip to content

Commit

Permalink
WebXRManager: Clean up. (mrdoob#24015)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and KallynGowdy committed May 24, 2022
1 parent 3a25fe5 commit 7314dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/webxr/WebXRManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class WebXRManager extends EventDispatcher {

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

if ( controller ) {
if ( controller !== undefined ) {

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

Expand All @@ -133,7 +133,7 @@ class WebXRManager extends EventDispatcher {

inputSourcesMap.forEach( function ( controller, inputSource ) {

if ( controller ) {
if ( controller !== undefined ) {

controller.disconnect( inputSource );

Expand Down

0 comments on commit 7314dd7

Please sign in to comment.