dist/uncompressed/skylark-utils/models.js
function(entity, options) {
      this._byId[entity.cid] = entity;
      var id = this.entityId(entity.attributes);
      if (id != null) this._byId[id] = entity;
      entity.on('all', this._onEntityEvent, this);
    }
function(entity, options) {
      this._byId[entity.cid] = entity;
      var id = this.entityId(entity.attributes);
      if (id != null) this._byId[id] = entity;
      entity.on('all', this._onEntityEvent, this);
    }
function ( entity , options ) { this . _byId [ entity . cid ] = entity ; var id = this . entityId ( entity . attributes ) ; if ( id != null ) this . _byId [ id ] = entity ; entity . on ( 'all' , this . _onEntityEvent , this ) ; }
Internal method to create a entity's ties to a collection.
Internal method to create a entity s ties to a collection .