From 81425f1511f2a6ce54a95b9ef0a5754e722d85b7 Mon Sep 17 00:00:00 2001 From: Matthew Irish Date: Tue, 26 Mar 2019 10:13:09 -0500 Subject: [PATCH] use proto() not prototype (#6474) --- ui/app/services/path-help.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/app/services/path-help.js b/ui/app/services/path-help.js index e7fa3883b2fd..ba90c2d63f9a 100644 --- a/ui/app/services/path-help.js +++ b/ui/app/services/path-help.js @@ -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) {