Skip to content

Commit 68133b9

Browse files
authored
Merge pull request #69 from crimx/fix-create-props
Fixed #66
2 parents 058cc93 + 6ae94bd commit 68133b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default class Api {
149149
appendProp(obj, prop, namespace, value) {
150150
if (value && value in typeMap) {
151151
const TypeClass = typeMap[value];
152-
const instance = new TypeClass(this.stubs, this.events, this.props, namespace);
152+
const instance = new TypeClass(this.stubs, this.events, this.props, `${namespace}.${prop}`);
153153
return Object.defineProperty(obj, prop, {
154154
get() {
155155
return instance.get();

0 commit comments

Comments
 (0)