index.js
function (object) {
            object.id = object.id || this.generateId();
            this.data.push(object);
            this.mapValues[object.id] = {};
            this.eachMap(function (map, mapName) {
                this.addObjectToMap(mapName, object);
            });
            return this;
        }
function (object) {
            object.id = object.id || this.generateId();
            this.data.push(object);
            this.mapValues[object.id] = {};
            this.eachMap(function (map, mapName) {
                this.addObjectToMap(mapName, object);
            });
            return this;
        }
function ( object ) { object . id = object . id || this . generateId ( ) ; this . data . push ( object ) ; this . mapValues [ object . id ] = { } ; this . eachMap ( function ( map , mapName ) { this . addObjectToMap ( mapName , object ) ; } ) ; return this ; }
adds the object

@public
@param {Object} object
@return {Com}
adds the object