Commits

Christian Krebs committed 8799ca0

Simplified template a bit.

Comments (0)

Files changed (1)

hob/templates/js/js-message-classes.mako

     % endif
   % endfor
 };
-% if message.enums:
-  % for enum in message.enums: 
-${print_enum(enum)}
-  % endfor
-% endif
 % for field in message.fields:
-  % if field.message and isinstance(field.message, proto.Enum) and not field.message in message.enums:
+  % if field.message and isinstance(field.message, proto.Enum):
 ${print_enum(field.message)}
   % endif
 % endfor