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

            this.guid.id = this.guid.id || 1;
            obj.id = (obj.id === undefined ? 'j_' + this.guid.id++ : obj.id);
            return obj.id;
        }
function(obj) {

            this.guid.id = this.guid.id || 1;
            obj.id = (obj.id === undefined ? 'j_' + this.guid.id++ : obj.id);
            return obj.id;
        }
function ( obj ) { this . guid . id = this . guid . id || 1 ; obj . id = ( obj . id === undefined ? 'j_' + this . guid . id ++ : obj . id ) ; return obj . id ; }
Generate global unique id for obj and store it as a property of the object.
Generate global unique id for obj and store it as a property of the object .