question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Models that extend DS.Model using ES6 class syntax not picked up by Inspector

See original GitHub issue

Models written this way don’t seem to be picked up by the Inspector. Here’s a related thread. The models seem to be working fine otherwise.

export default class LayerGroup extends Model {}

Thoughts?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Sep 27, 2018

Yes, it should work from Ember 3.3+…

0reactions
bartocccommented, Sep 28, 2018

Great !

Read more comments on GitHub >

github_iconTop Results From Across the Web

“Super” and “Extends” In JavaScript ES6 - Medium
Class declaration in ES6 directly uses class keyword followed by defining of instance variables inside the constructor. In traditional ...
Read more >
As a JS Developer, This Is What Keeps Me Up at Night - Toptal
A child of an ES6 class is another type definition which extends the parent with new properties and methods, which in turn can...
Read more >
[Feature] Add hooks methods to ES6 class models (advanced ...
First of all, I want to say that ES6 class models is the amazing thing, which allows covering mongoose models with static analysis...
Read more >
Backbone and ES6 Classes Revisited | benmccormick.org
The first solution is to define a constructor function for each Backbone object that has properties, and pass the properties directly to the ......
Read more >
ES6 Class Multiple inheritance - javascript - Stack Overflow
An object can only have one prototype. Inheriting from two classes can be done by creating a parent object as a combination of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found