Revert "Merge pull request #203 from RReverser/ctor-spread-speedup"
This reverts commit 714ca9fbc8f79892c43859af09277ab8413f710c, reversing changes made to d50d4972a7742bff165c6841be0ca4e4f75b5ff4.
This commit is contained in:
parent
7bbb3725d4
commit
9e6b0b45b3
@ -1,5 +1,5 @@
|
||||
(function (Constructor, args) {
|
||||
var instance = Object.create(Constructor);
|
||||
Constructor.apply(instance, args);
|
||||
return instance;
|
||||
var bindArgs = [null].concat(args);
|
||||
var Factory = Constructor.bind.apply(Constructor, bindArgs);
|
||||
return new Factory;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user