Skip to content

Commit db1f956

Browse files
Replace back call by apply.
1 parent f88b00c commit db1f956

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/movehub-extension/widget.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,34 +153,34 @@ export class MoveHubModel extends DOMWidgetModel {
153153
this.poll();
154154
break;
155155
case 'led':
156-
this.movehub.led.call(this.movehub, args);
156+
this.movehub.led.apply(this.movehub, args);
157157
break;
158158
case 'ledAsync':
159-
await this.movehub.ledAsync.call(this.movehub, args);
159+
await this.movehub.ledAsync.apply(this.movehub, args);
160160
break;
161161
case 'motorTime':
162-
this.movehub.motorTime.call(this.movehub, args);
162+
this.movehub.motorTime.apply(this.movehub, args);
163163
break;
164164
case 'motorTimeMulti':
165-
this.movehub.motorTimeMulti.call(this.movehub, args);
165+
this.movehub.motorTimeMulti.apply(this.movehub, args);
166166
break;
167167
case 'motorTimeAsync':
168-
await this.movehub.motorTimeAsync.call(this.movehub, args);
168+
await this.movehub.motorTimeAsync.apply(this.movehub, args);
169169
break;
170170
case 'motorTimeMultiAsync':
171-
await this.movehub.motorTimeMultiAsync.call(this.movehub, args);
171+
await this.movehub.motorTimeMultiAsync.apply(this.movehub, args);
172172
break;
173173
case 'motorAngle':
174-
this.movehub.motorAngle.call(this.movehub, args);
174+
this.movehub.motorAngle.apply(this.movehub, args);
175175
break;
176176
case 'motorAngleMulti':
177-
this.movehub.motorAngleMulti.call(this.movehub, args);
177+
this.movehub.motorAngleMulti.apply(this.movehub, args);
178178
break;
179179
case 'motorAngleAsync':
180-
await this.movehub.motorAngleAsync.call(this.movehub, args);
180+
await this.movehub.motorAngleAsync.apply(this.movehub, args);
181181
break;
182182
case 'motorAngleMultiAsync':
183-
await this.movehub.motorAngleMultiAsync.call(this.movehub, args);
183+
await this.movehub.motorAngleMultiAsync.apply(this.movehub, args);
184184
break;
185185
default:
186186
console.error(`unknown command "${cmd}"`);

0 commit comments

Comments
 (0)