Skip to content

Commit

Permalink
is service detection update
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Apr 18, 2018
1 parent 2306bbe commit e38f033
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ember_debug/object-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,13 @@ function addProperties(properties, hash) {
}
let options = { isMandatorySetter: isMandatorySetter(hash, prop) };

if (typeof hash[prop] === 'object' && hash[prop] !== null && hash[prop].constructor) {
options.isService = hash[prop].constructor.isServiceFactory;
if (typeof hash[prop] === 'object' && hash[prop] !== null) {
options.isService = hash[prop].type === 'service';
if (!options.isService) {
if (hash[prop].constructor) {
options.isService = hash[prop].constructor.isServiceFactory;
}
}
}

if (isComputed(hash[prop])) {
Expand Down

0 comments on commit e38f033

Please sign in to comment.