lib/Ext/dom/Element.js
function(element, named) {
            var fly = null,
                flyweights = Element._flyweights,
                cachedElement;

            named = named || '_global';

            element = Ext.getDom(element);

            if (element) {
                fly = flyweights[named] || (flyweights[named] = new Element.Fly());
                fly.dom = element;
                fly.isSynchronized = false;
                cachedElement = Ext.cache[element.id];
                if (cachedElement && cachedElement.isElement) {
                    cachedElement.isSynchronized = false;
                }
            }

            return fly;
        }
function(element, named) {
            var fly = null,
                flyweights = Element._flyweights,
                cachedElement;

            named = named || '_global';

            element = Ext.getDom(element);

            if (element) {
                fly = flyweights[named] || (flyweights[named] = new Element.Fly());
                fly.dom = element;
                fly.isSynchronized = false;
                cachedElement = Ext.cache[element.id];
                if (cachedElement && cachedElement.isElement) {
                    cachedElement.isSynchronized = false;
                }
            }

            return fly;
        }
Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference
to this element - the dom node can be overwritten by other code. {@link Ext#fly} is alias for
{@link Ext.dom.Element#fly}.

Use this to make one-time references to DOM elements which are not going to be accessed again either by
application code, or by Ext's classes. If accessing an element which will be processed regularly, then {@link Ext#get Ext.get}
will be more appropriate to take advantage of the caching provided by the {@link Ext.dom.Element}
class.

@param {String/HTMLElement} element The DOM node or `id`.
@param {String} [named] Allows for creation of named reusable flyweights to prevent conflicts (e.g.
internally Ext uses "_global").
@return {Ext.dom.Element} The shared Element object (or `null` if no matching element was found).
@static