only push the initializer function if required
This commit is contained in:
parent
e27e7facac
commit
2b0c07c2e7
@ -23,7 +23,7 @@
|
||||
throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator);
|
||||
}
|
||||
}
|
||||
initializers[key] = descriptor.initializer;
|
||||
if (initializers) initializers[key] = descriptor.initializer;
|
||||
}
|
||||
|
||||
Object.defineProperty(target, key, descriptor);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user