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

Extends: [MyClass] throws "klass is not a constructor" #2791

Closed
CNSKnight opened this issue Nov 2, 2017 · 3 comments
Closed

Extends: [MyClass] throws "klass is not a constructor" #2791

CNSKnight opened this issue Nov 2, 2017 · 3 comments

Comments

@CNSKnight
Copy link

#odd-but-annoying quirk

MooTools.version "1.6.0"

Passing a single-element array to Class.Extends throws "klass is not a constructor"

Replacing Extends: [MyClass] with Extends: MyClass is handled

@SergioCrisostomo
Copy link
Member

@CNSKnight can you make a jsFiddle that reproduces this problem?

@Oliv
Copy link

Oliv commented Nov 15, 2017

I think this reproduces the behaviour : https://jsfiddle.net/68jghwo6/1

@DimitarChristoff
Copy link
Member

You can only have one super to extend, array does not make any sense. This is not like Implements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants