fix(decorators/mixin): do not use arrow function for constructor

It works because of the transpilation but it's not valid ES2015.
This commit is contained in:
Julien Fontanet
2016-12-13 11:41:22 +01:00
parent a8c7558a77
commit 92e289f9da

View File

@@ -111,7 +111,7 @@ export const mixin = MixIns => Class => {
defineProperties(prototype, descriptors)
}
const Decorator = (...args) => {
function Decorator (...args) {
const instance = new Class(...args)
for (const MixIn of MixIns) {