src/main/javascript/dom/floatz.dom.dom.js
/**
     * Query a unique element.
     *
     * @param selector Selector
     * @param {Node|DOMElement|Object=} context Context native element or DOMElement (optional, default is window)
     * @returns {DOMElement} DOMElement or null if not found
     */
Query a unique element.
@param selector Selector
@param {Node|DOMElement|Object=} context Context native element or DOMElement (optional, default is window)
@returns {DOMElement} DOMElement or null if not found
Query a unique element . @param selector Selector @param { Node|DOMElement|Object = } context Context native element or DOMElement ( optional default is window ) @returns { DOMElement } DOMElement or null if not found
static queryUnique(selector, context = window) {
        let root = DOM.isWindow(context) ? window.document.documentElement : context;
        if (root instanceof DOMElement) {
            root = root.origNode();
        }
        let element = root.querySelector(selector);
        return element ? new DOMElement(element) : null;
    }
static queryUnique ( selector , context = window ) { let root = DOM . isWindow ( context ) ? window . document . documentElement : context ; if ( root instanceof DOMElement ) { root = root . origNode ( ) ; } let element = root . querySelector ( selector ) ; return element ? new DOMElement ( element ) : null ; }
Query a unique element.
Query a unique element .