dist/evrythng.js
function thng(id) {

    // To create nested Resources, the collection itself needs
    // a resource.
    if(!this.resource) {
      throw new Error('This Entity does not have a Resource.');
    }

    var path = this.resource.path + '/thngs';

    return Resource.constructorFactory(path, EVT.Entity.Thng)
      .call(this.resource.scope, id);
  }
function thng(id) {

    // To create nested Resources, the collection itself needs
    // a resource.
    if(!this.resource) {
      throw new Error('This Entity does not have a Resource.');
    }

    var path = this.resource.path + '/thngs';

    return Resource.constructorFactory(path, EVT.Entity.Thng)
      .call(this.resource.scope, id);
  }
function thng ( id ) { // To create nested Resources, the collection itself needs // a resource. if ( ! this . resource ) { throw new Error ( 'This Entity does not have a Resource.' ) ; } var path = this . resource . path + '/thngs' ; return Resource . constructorFactory ( path , EVT . Entity . Thng ) . call ( this . resource . scope , id ) ; }
Custom nested resource constructor for Thngs of a Collection.
Custom nested resource constructor for Thngs of a Collection .