Skip to content

Commit

Permalink
removed constructor value name from DataManagerList and ~Resource
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Jan 23, 2017
1 parent 489d195 commit 86ff6d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/DataManager.js
Expand Up @@ -49,7 +49,7 @@ export default class DataManager extends Core {
.withTemplateParameters(optionsToQuery(options));
return get(request);
})
.then(([res, traversal]) => new DataManagerList(res, this.resourceName, traversal));
.then(([res, traversal]) => new DataManagerList(res, traversal));
}

/**
Expand All @@ -69,6 +69,6 @@ export default class DataManager extends Core {
.withTemplateParameters({ dataManagerID });
return get(request);
})
.then(([res, traversal]) => new DataManagerResource(res, this.resourceName, traversal));
.then(([res, traversal]) => new DataManagerResource(res, traversal));
}
}
7 changes: 3 additions & 4 deletions src/resources/DataManagerList.js
Expand Up @@ -14,12 +14,11 @@ export default class DataManagerList extends ListResource {
* Creates a new {@link DataManagerList}.
*
* @param {object} resource resource loaded from the API.
* @param {?string} name name of the embedded resources.
* @param {?object} traversal traversal from which traverson can continue.
*/
constructor(resource, name, traversal) {
super(resource, name, traversal);
this.ListClass = ListResource;
constructor(resource, traversal) {
super(resource, 'ec:datamanager', traversal);
this.ListClass = DataManagerList;
this.ItemClass = DataManagerResource;
}

Expand Down
1 change: 1 addition & 0 deletions typings/resource/DataManagerResource.d.ts
@@ -1,6 +1,7 @@
import { Resource } from './Resource';

export declare class DataManagerResource extends Resource {
constructor(resource: any, traversal?: any);

setTitle(value: string): DataManagerResource;

Expand Down

0 comments on commit 86ff6d4

Please sign in to comment.