mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
new Error to Error
This commit is contained in:
parent
870019d2df
commit
644c8ad389
13 changed files with 44 additions and 44 deletions
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue