- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
22 lines
581 B
JavaScript
22 lines
581 B
JavaScript
'use strict';
|
|
|
|
var isElement = require('./is-element.cjs');
|
|
|
|
function getOwnerWindow(node) {
|
|
return getOwnerDocument(node)?.defaultView ?? window;
|
|
}
|
|
function getOwnerDocument(node) {
|
|
return isElement.isHTMLElement(node) ? node.ownerDocument : document;
|
|
}
|
|
function getEventWindow(event) {
|
|
return event.view ?? window;
|
|
}
|
|
function getActiveElement(node) {
|
|
return getOwnerDocument(node).activeElement;
|
|
}
|
|
|
|
exports.getActiveElement = getActiveElement;
|
|
exports.getEventWindow = getEventWindow;
|
|
exports.getOwnerDocument = getOwnerDocument;
|
|
exports.getOwnerWindow = getOwnerWindow;
|