File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,27 +2,21 @@ module.exports = function analyzeEmberObject(possibleEmberObject) {
22 if ( typeof possibleEmberObject !== 'object' || possibleEmberObject === null ) {
33 return undefined ;
44 }
5- if (
6- possibleEmberObject . default &&
7- ( typeof possibleEmberObject . default . proto !== 'function' ||
8- typeof possibleEmberObject . default . create !== 'function' )
9- ) {
5+ if ( possibleEmberObject . default && typeof possibleEmberObject . default . proto !== 'function' ) {
106 return undefined ;
117 }
128
13- let obj = possibleEmberObject . default . proto
14- ? possibleEmberObject . default . proto ( )
15- : possibleEmberObject . default . create ( ) ;
16-
179 if ( possibleEmberObject . default . isHelperFactory ) {
1810 return {
1911 type : 'Helper' ,
2012 } ;
2113 }
2214
15+ let proto = possibleEmberObject . default . proto ( ) ;
16+
2317 // Ember here is assumed to be global when ran within the context of the browser
2418 /* globals Ember */
25- let meta = Ember . meta ( obj ) ;
19+ let meta = Ember . meta ( proto ) ;
2620
2721 // eslint-disable-next-line no-undef
2822 if ( ! meta || ! meta . source ) {
You can’t perform that action at this time.
0 commit comments