| 122 | element.dispatchEvent(new Event(TRANSITION_END)); |
| 123 | }; |
| 124 | const isElement = object => { |
| 125 | if (!object || typeof object !== 'object') { |
| 126 | return false; |
| 127 | } |
| 128 | if (typeof object.jquery !== 'undefined') { |
| 129 | object = object[0]; |
| 130 | } |
| 131 | return typeof object.nodeType !== 'undefined'; |
| 132 | }; |
| 133 | const getElement = object => { |
| 134 | // it's a jQuery object or a node element |
| 135 | if (isElement(object)) { |
no outgoing calls
no test coverage detected