Skip to content

Commit

Permalink
Merge pull request #69 from crimx/fix-create-props
Browse files Browse the repository at this point in the history
Fixed #66
  • Loading branch information
acvetkov authored Jan 15, 2018
2 parents 058cc93 + 6ae94bd commit 68133b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class Api {
appendProp(obj, prop, namespace, value) {
if (value && value in typeMap) {
const TypeClass = typeMap[value];
const instance = new TypeClass(this.stubs, this.events, this.props, namespace);
const instance = new TypeClass(this.stubs, this.events, this.props, `${namespace}.${prop}`);
return Object.defineProperty(obj, prop, {
get() {
return instance.get();
Expand Down

0 comments on commit 68133b9

Please sign in to comment.