Skip to content

Commit

Permalink
support Ops.MaybeLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinJoyce committed Oct 28, 2017
1 parent 9789f89 commit 622de5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-glimmer/lib/utils/bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export function wrapComponentClassAttribute(hash) {
if (index !== -1) {
let [ type ] = values[index];

if (type === Ops.Get) {
if (type === Ops.Get || type === Ops.MaybeLocal) {
let getExp = values[index];
let path = getExp[2];
let path = getExp[getExp.length - 1];
let propName = path[path.length - 1];
hash[1][index] = [Ops.Helper, ['-class'], [getExp, propName]];
}
Expand Down

0 comments on commit 622de5b

Please sign in to comment.