Skip to content

Commit 161d1f3

Browse files
author
Robert Jackson
authored
fix gathering helpers (#12)
fix gathering helpers
2 parents ef0dd07 + 219db53 commit 161d1f3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/gather/analyze-ember-object.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ module.exports = function analyzeEmberObject(possibleEmberObject) {
55
if (possibleEmberObject.default && typeof possibleEmberObject.default.proto !== 'function') {
66
return undefined;
77
}
8+
9+
if (possibleEmberObject.default.isHelperFactory) {
10+
return {
11+
type: 'Helper',
12+
};
13+
}
14+
815
let proto = possibleEmberObject.default.proto();
916

1017
// Ember here is assumed to be global when ran within the context of the browser

0 commit comments

Comments
 (0)