fix super constructor call - fixes #34

This commit is contained in:
Sebastian McKenzie
2014-10-10 20:37:15 +11:00
parent c4a3a08d31
commit 58da989164
7 changed files with 30 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
var Test = function (Foo) {
function Test() {
Foo.call(this, arguments);
Foo.apply(this, arguments);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {