Skip to content

Commit 806a6fe

Browse files
MridulMridul
andauthored
refactor(List): replace deprecated substr with slice (#33267)
Co-authored-by: Mridul <iammridul012@gamil.com>
1 parent 153f630 commit 806a6fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/jsm/inspector/ui/List.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class List {
88
this.domElement = document.createElement( 'div' );
99
this.domElement.className = 'list-container';
1010
this.domElement.style.padding = '10px';
11-
this.id = `list-${Math.random().toString( 36 ).substr( 2, 9 )}`;
11+
this.id = `list-${Math.random().toString( 36 ).slice( 2, 11 )}`;
1212
this.domElement.dataset.listId = this.id;
1313

1414
this.gridStyleElement = document.createElement( 'style' );

0 commit comments

Comments
 (0)