File tree 3 files changed +13
-12
lines changed
3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 9
9
"ecmaVersion" : 11 ,
10
10
"sourceType" : " module"
11
11
},
12
- "rules" : {}
12
+ "rules" : {
13
+ "no-param-reassign" : " off"
14
+ }
13
15
}
Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ module.exports = {
89
89
{
90
90
test : / \. j s x ? $ / ,
91
91
exclude : / n o d e _ m o d u l e s / ,
92
- // use: ['babel-loader', 'eslint-loader'],
93
- use : [ 'babel-loader' ] ,
92
+ use : [ 'babel-loader' , 'eslint-loader' ] ,
94
93
} ,
95
94
96
95
/**
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ class AnimatedModel {
36
36
}
37
37
38
38
deconstruct ( ) {
39
- for ( const elem of this . trackingElems ) {
40
- elem . remove ( ) ;
41
- }
39
+ this . trackingElems . forEach ( ( elem ) => {
40
+ elem . remove ( ) ;
41
+ } ) ;
42
42
43
43
this . nametag . remove ( ) ;
44
44
this . chatBubble . remove ( ) ;
@@ -55,7 +55,7 @@ class AnimatedModel {
55
55
htmlElem . style . transitionTimingFunction = 'linear' ;
56
56
htmlElem . style . transitionProperty = 'top, left' ;
57
57
58
- this . trackingElems . push ( htmlElem )
58
+ this . trackingElems . push ( htmlElem ) ;
59
59
}
60
60
61
61
updateChat ( msg ) {
@@ -102,11 +102,11 @@ class AnimatedModel {
102
102
const objPt = dest . clone ( ) ;
103
103
const screenPt = this . reverseRaycaster ( objPt ) ;
104
104
105
- for ( const elem of this . trackingElems ) {
106
- elem . style . transitionDuration = `${ time } s` ;
107
- elem . style . left = `${ screenPt [ 0 ] } px` ;
108
- elem . style . top = `${ screenPt [ 1 ] } px` ;
109
- }
105
+ this . trackingElems . forEach ( ( elem ) => {
106
+ elem . style . transitionDuration = `${ time } s` ;
107
+ elem . style . left = `${ screenPt [ 0 ] } px` ;
108
+ elem . style . top = `${ screenPt [ 1 ] } px` ;
109
+ } ) ;
110
110
111
111
return time ;
112
112
}
You can’t perform that action at this time.
0 commit comments