dist/joint.nowrap.js
function(port) {

            if (this._portElementsCache[port.id]) {
                return this._portElementsCache[port.id].portElement;
            }
            return this._createPortElement(port);
        }
function(port) {

            if (this._portElementsCache[port.id]) {
                return this._portElementsCache[port.id].portElement;
            }
            return this._createPortElement(port);
        }
function ( port ) { if ( this . _portElementsCache [ port . id ] ) { return this . _portElementsCache [ port . id ] . portElement ; } return this . _createPortElement ( port ) ; }
Try to get element from cache,
@param port
@returns {*}
@private
Try to get element from cache