lib/Ext/dom/Element.js
function(dom) {
        if (typeof dom == 'string') {
            dom = document.getElementById(dom);
        }

        if (!dom) {
            throw new Error("Invalid domNode reference or an id of an existing domNode: " + dom);
        }

        /**
         * The DOM element
         * @property dom
         * @type HTMLElement
         */
        this.dom = dom;

        this.getUniqueId();
    }
function(dom) {
        if (typeof dom == 'string') {
            dom = document.getElementById(dom);
        }

        if (!dom) {
            throw new Error("Invalid domNode reference or an id of an existing domNode: " + dom);
        }

        /**
         * The DOM element
         * @property dom
         * @type HTMLElement
         */
        this.dom = dom;

        this.getUniqueId();
    }
@event painted
Fires whenever this Element actually becomes visible (painted) on the screen. This is useful when you need to
perform 'read' operations on the DOM element, i.e: calculating natural sizes and positioning.

__Note:__ This event is not available to be used with event delegation. Instead `painted` only fires if you explicitly
add at least one listener to it, for performance reasons.

@param {Ext.Element} this The component instance.
 
@event resize
Important note: For the best performance on mobile devices, use this only when you absolutely need to monitor
a Element's size.

__Note:__ This event is not available to be used with event delegation. Instead `resize` only fires if you explicitly
add at least one listener to it, for performance reasons.

@param {Ext.Element} this The component instance.