Skip to content

Commit

Permalink
use proto() not prototype (#6474)
Browse files Browse the repository at this point in the history
  • Loading branch information
meirish authored Mar 26, 2019
1 parent 4daf772 commit 81425f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/app/services/path-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ export default Service.extend({
getNewModel(modelType, owner, backend) {
let name = `model:${modelType}`;
let newModel = owner.factoryFor(name).class;
if (newModel.merged || newModel.prototype.useOpenAPI !== true) {
let modelProto = newModel.proto();
if (newModel.merged || modelProto.useOpenAPI !== true) {
return resolve();
}
let helpUrl = newModel.prototype.getHelpUrl(backend);
let helpUrl = modelProto.getHelpUrl(backend);

return this.getProps(helpUrl, backend).then(props => {
if (owner.hasRegistration(name) && !newModel.merged) {
Expand Down

0 comments on commit 81425f1

Please sign in to comment.