* get the window object of an element * @param {HTMLElement} element * @returns {DocumentView|Window}
(element)
| 92755 | * @param {HTMLElement} element |
| 92756 | * @returns {DocumentView|Window} |
| 92757 | */ function getWindowForElement(element) { |
| 92758 | var doc = element.ownerDocument || element; |
| 92759 | return doc.defaultView || doc.parentWindow || window; |
| 92760 | } |
| 92761 | var MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i; |
| 92762 | var SUPPORT_TOUCH = "ontouchstart" in window; |
| 92763 | var SUPPORT_POINTER_EVENTS = prefixed(window, "PointerEvent") !== undefined; |