call decorator initializers with the proper context - #1350 - thanks @monsanto
This commit is contained in:
parent
3078d48178
commit
be650ffc61
@ -26,7 +26,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
descriptor.value = descriptor.initializer();
|
||||
descriptor.value = descriptor.initializer.call(target);
|
||||
|
||||
Object.defineProperty(target, key, descriptor);
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
for (var _key in _descriptor) descriptor[_key] = _descriptor[_key];
|
||||
|
||||
// initialize it
|
||||
descriptor.value = descriptor.initializer();
|
||||
descriptor.value = descriptor.initializer.call(target);
|
||||
|
||||
Object.defineProperty(target, key, descriptor);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user