dist/toolkit.js
function(node, callback) {
        var elements = this.elements,
            el,
            id = $(node).cache('toolkit.cid', function() {
                return Math.random().toString(32).substr(2);
            });

        if (elements[id]) {
            el = elements[id];
        } else {
            el = elements[id] = this.createElement(node);

            if ($.type(callback) === 'function') {
                callback.call(this, el);
            }
        }

        return this.element = el;
    }
function(node, callback) {
        var elements = this.elements,
            el,
            id = $(node).cache('toolkit.cid', function() {
                return Math.random().toString(32).substr(2);
            });

        if (elements[id]) {
            el = elements[id];
        } else {
            el = elements[id] = this.createElement(node);

            if ($.type(callback) === 'function') {
                callback.call(this, el);
            }
        }

        return this.element = el;
    }
function ( node , callback ) { var elements = this . elements , el , id = $ ( node ) . cache ( 'toolkit.cid' , function ( ) { return Math . random ( ) . toString ( 32 ) . substr ( 2 ) ; } ) ; if ( elements [ id ] ) { el = elements [ id ] ; } else { el = elements [ id ] = this . createElement ( node ) ; if ( $ . type ( callback ) === 'function' ) { callback . call ( this , el ) ; } } return this . element = el ; }
Attempt to find and return an element by a unique composite ID.
Each element is unique per node. If the element does not exist, create it.

@param {jQuery} node
@param {Function} [callback]   - Callback to trigger once an element is created
@returns {jQuery}
Attempt to find and return an element by a unique composite ID . Each element is unique per node . If the element does not exist create it .