@needle-tools/three 0.162.6 → 0.162.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three",
3
- "version": "0.162.6",
3
+ "version": "0.162.7",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -163,7 +163,7 @@ class WebXRManager extends EventDispatcher {
163
163
 
164
164
  controllerInputSources[ i ] = null;
165
165
 
166
- controllers[ i ].disconnect( inputSource );
166
+ controllers[ i ]?.disconnect( inputSource );
167
167
 
168
168
  }
169
169
 
@@ -395,7 +395,7 @@ class WebXRManager extends EventDispatcher {
395
395
  if ( index >= 0 ) {
396
396
 
397
397
  controllerInputSources[ index ] = null;
398
- controllers[ index ].disconnect( inputSource );
398
+ controllers[ index ]?.disconnect( inputSource );
399
399
 
400
400
  }
401
401