ko.utils.setTimeout to native setTimeout

This commit is contained in:
djmaze 2021-09-28 13:45:19 +02:00
parent 9014f08f35
commit 5cb4d338a1
5 changed files with 7 additions and 9 deletions

View file

@ -94,8 +94,6 @@ ko.utils = {
domNodeIsAttachedToDocument: node => ko.utils.domNodeIsContainedBy(node, node.ownerDocument.documentElement),
setTimeout: (handler, timeout) => setTimeout(handler, timeout),
triggerEvent: (element, eventType) => {
if (!(element && element.nodeType))
throw new Error("element must be a DOM node when calling triggerEvent");