new Error to Error

This commit is contained in:
the-djmaze 2024-03-04 01:12:40 +01:00
parent 870019d2df
commit 644c8ad389
13 changed files with 44 additions and 44 deletions

View file

@ -47,7 +47,7 @@ ko.utils.domNodeDisposal = (() => {
return {
'addDisposeCallback' : (node, callback) => {
if (typeof callback != "function")
throw new Error("Callback must be a function");
throw Error("Callback must be a function");
getDisposeCallbacksCollection(node, 1).add(callback);
},