diff --git a/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js b/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js index 086138093..fbdafc29a 100644 --- a/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js +++ b/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js @@ -25,7 +25,7 @@ function parse(node, state, args) { if (attrName) { if (args.createArgs[attrName]) { - code = `${attrVarName} = ${codePush} - 1`; + code = `var ${attrVarName} = ${codePush} - 1`; } else { code = `${attrVarName} = undefined; ${codePush}`; }