Skip to content

Commit 2aa226d

Browse files
committed
Be more robust with owner detection
1 parent 8ed4dd1 commit 2aa226d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ember-resources/src/intermediate-representation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export class Builder<Value> {
7878
const TYPE = 'function-based';
7979

8080
registerUsable(TYPE, (context: object, config: Builder<unknown>) => {
81-
console.log({ context, config });
81+
let owner = getOwner(context) || context;
8282

83-
return config.create(context as Owner)[RESOURCE_CACHE];
83+
return config.create(owner as Owner)[RESOURCE_CACHE];
8484
});
8585

8686
/**

0 commit comments

Comments
 (0)