Skip to content

Commit 1e9f35d

Browse files
Injected properties should be enumerable
1 parent ca228bb commit 1e9f35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typescript-ioc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class IoCContainer {
301301
static injectProperty(target: Function, key: string, propertyType: Function) {
302302
const propKey = `__${key}`;
303303
Object.defineProperty(target.prototype, key, {
304-
// enumerable: true,
304+
enumerable: true,
305305
get: function(){
306306
return this[propKey]?this[propKey]:this[propKey]=IoCContainer.get(propertyType);
307307
},

0 commit comments

Comments
 (0)