ember-learn/ember-jsonapi-docs

Need to account for `reopen` and `@for`

Gaurav0 opened this issue · 3 comments

Looking at emberjs/ember.js#16247 and at the source of https://github.com/emberjs/ember.js/blob/v3.0.0/packages/ember-routing/lib/ext/controller.js

The underlying issue is that ember-jsonapi-docs do not account for the use of reopen and @for in source documentation.

The fix is likely to be very similar to the one for uses here:

if (klass.uses && klass.uses.length) {
parents = parents.concat(klass.uses.reverse())
}

@for still works. We just need to change it back from @for ControllerMixin to @for Ember.ControllerMixin