$.Class() fails to run superclass constructor on multi-level inheritance
LeaVerou opened this issue · 0 comments
LeaVerou commented
Testcase:
var Foo = function(){ console.log("Foo") };
var Bar = $.Class({extends: Foo, constructor: function(){ console.log("Bar") }});
var Baz = $.Class({extends: Bar, constructor: function(){ console.log("Baz") }});
var baz = new Baz(); // prints Bar and Baz, but not Foo
I’m working on debugging this right now, anyone wants to turn the testcase above into a test with spies?