| Index: mojo/public/bindings/generators/js_templates/module.js.tmpl
|
| diff --git a/mojo/public/bindings/generators/js_templates/module.js.tmpl b/mojo/public/bindings/generators/js_templates/module.js.tmpl
|
| index 2fb3c0e70629a0bf4a04d3fd5a328da169fe8a13..3bce1179ea2658713d8a9d1a80cd3322d541c089 100644
|
| --- a/mojo/public/bindings/generators/js_templates/module.js.tmpl
|
| +++ b/mojo/public/bindings/generators/js_templates/module.js.tmpl
|
| @@ -15,14 +15,14 @@ define([
|
| ) {
|
|
|
| {#--- Enums #}
|
| -{%- from "enum_definition.tmpl" import enum_def -%}
|
| +{% from "enum_definition.tmpl" import enum_def -%}
|
| {% for enum in enums %}
|
| -{{ enum_def("var %s"|format(enum.name), enum) }}
|
| + var {{ enum_def(enum.name, enum, module) }}
|
| {%- endfor %}
|
|
|
| {#--- Struct definitions #}
|
| {% for struct in structs %}
|
| -{% include "struct_definition.tmpl" %}
|
| +{%- include "struct_definition.tmpl" %}
|
| {%- endfor %}
|
|
|
| {#--- Interface definitions #}
|
|
|