Skip to content

Commit 1bc3b45

Browse files
committed
Missed a utility function call.
1 parent 970815d commit 1bc3b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_unicorn/static/js/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { $, contains, hasValue, isEmpty, walk } from "./utils.js";
1+
import { $, contains, hasValue, isEmpty, isFunction, walk } from "./utils.js";
22
import { debounce } from "./delayers.js";
33
import { Element } from "./element.js";
44
import { send } from "./messageSender.js";
@@ -135,7 +135,7 @@ export class Component {
135135
this.actionQueue.push(action);
136136

137137
this.queueMessage(-1, (triggeringElements, err) => {
138-
if (err && typeof errCallback === "function") {
138+
if (err && isFunction(errCallback)) {
139139
errCallback(err);
140140
} else if (err) {
141141
console.error(err);

0 commit comments

Comments
 (0)