Skip to content

Commit

Permalink
Fixed: Actually emit TS compatible enums in static target if not alia…
Browse files Browse the repository at this point in the history
…ses, see #720
  • Loading branch information
dcodeIO committed Mar 23, 2017
1 parent a5dbba4 commit a06691f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/targets/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function buildEnum(ref, enm) {
var aliased = [];
Object.keys(enm.values).forEach(function(key) {
var val = enm.values[key];
if (aliased.indexOf(val) >= -1)
if (aliased.indexOf(val) > -1)
push("values[" + JSON.stringify(key) + "] = " + val + ";");
else {
push("values[valuesById[" + val + "] = " + JSON.stringify(key) + "] = " + val + ";");
Expand Down

0 comments on commit a06691f

Please sign in to comment.