(obj)
| 114 | }; |
| 115 | |
| 116 | const getElement = (obj) => { |
| 117 | if (isElement(obj)) { |
| 118 | // it's a jQuery object or a node element |
| 119 | return obj.jquery ? obj[0] : obj; |
| 120 | } |
| 121 | |
| 122 | if (typeof obj === "string" && obj.length > 0) { |
| 123 | return document.querySelector(obj); |
| 124 | } |
| 125 | |
| 126 | return null; |
| 127 | }; |
| 128 | |
| 129 | const emulateTransitionEnd = (element, duration) => { |
| 130 | let called = false; |
no test coverage detected