| Index: mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| index 93fa537023dddb7683fe24bab0a297244c3b32e6..397a12054624925bf573cdbca83aa26e2878f910 100644
|
| --- a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl
|
| @@ -22,7 +22,7 @@ define("{{module.path}}", [
|
| {#--- Enums #}
|
| {%- from "enum_definition.tmpl" import enum_def %}
|
| {%- for enum in enums %}
|
| - var {{ enum_def(enum.name, enum, module) }}
|
| + var {{ enum_def(enum.name, enum) }}
|
| {%- endfor %}
|
|
|
| {#--- Struct definitions #}
|
| @@ -46,8 +46,12 @@ define("{{module.path}}", [
|
| exports.{{struct.name}} = {{struct.name}};
|
| {%- endfor %}
|
| {%- for interface in interfaces %}
|
| - exports.{{interface.name}}Proxy = {{interface.name}}Proxy;
|
| - exports.{{interface.name}}Stub = {{interface.name}}Stub;
|
| + exports.{{interface.name}} = {{interface.name}};
|
| +{#--- Interface Client #}
|
| +{%- if interface.client in interfaces|map(attribute='name') %}
|
| + exports.{{interface.name}}.client = {{interface.client}};
|
| +{%- endif %}
|
| {%- endfor %}
|
| +
|
| return exports;
|
| });
|
|
|