Skip to content

Commit 6acacf9

Browse files
committed
Suppress type warning on callbackId
1 parent 8b8975d commit 6acacf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/higlass/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default {
316316
});
317317

318318
if (viewconf.views.length === 1) {
319-
api.on(
319+
/** @type {any} */ (api).on(
320320
"location",
321321
(/** @type {GenomicLocation} */ loc) => {
322322
model.set("location", locationToCoordinates(loc));
@@ -326,7 +326,7 @@ export default {
326326
);
327327
} else {
328328
viewconf.views.forEach((view, idx) => {
329-
api.on(
329+
/** @type {any} */ (api).on(
330330
"location",
331331
(/** @type{GenomicLocation} */ loc) => {
332332
let location = model.get("location").slice();

0 commit comments

Comments
 (0)