Skip to content

Commit

Permalink
Update packages/@ember/-internals/metal/lib/tags.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: pzuraq <me@pzuraq.com>
  • Loading branch information
rwjblue and pzuraq committed Mar 3, 2019
1 parent 4d92a3d commit af03e24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@ember/-internals/metal/lib/tags.ts
Expand Up @@ -22,7 +22,8 @@ function makeTag(): TagWrapper<DirtyableTag> {
}

export function tagForProperty(object: any, propertyKey: string | symbol, _meta?: Meta): Tag {
if (typeof object !== 'function' && (typeof object !== 'object' || object === null)) {
let objectType = typeof object;
if (objectType !== 'function' && (objectType !== 'object' || object === null)) {
return CONSTANT_TAG;
}
let meta = _meta === undefined ? metaFor(object) : _meta;
Expand Down

0 comments on commit af03e24

Please sign in to comment.