Skip to content

Commit 5451ff3

Browse files
authored
Merge pull request #1383 from tidev/optionFix
fix: iOS optionDialog cancel option
2 parents cc7596e + fbc6e3d commit 5451ff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Alloy/commands/compile/parsers/Alloy.Abstract.Option.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function parse(node, state, args) {
2525

2626
if (attrName) {
2727
if (args.createArgs[attrName]) {
28-
code = `${attrVarName} = ${codePush} - 1`;
28+
code = `var ${attrVarName} = ${codePush} - 1`;
2929
} else {
30-
code = `${attrVarName} = undefined; ${codePush}`;
30+
code = `var ${attrVarName} = undefined; ${codePush}`;
3131
}
3232
}
3333

0 commit comments

Comments
 (0)