Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.Class() fails to run superclass constructor on multi-level inheritance #177

Closed
LeaVerou opened this issue Mar 4, 2016 · 0 comments
Closed
Assignees
Labels

Comments

@LeaVerou
Copy link
Owner

LeaVerou commented Mar 4, 2016

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?

@LeaVerou LeaVerou added the bug label Mar 4, 2016
@LeaVerou LeaVerou self-assigned this Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant