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 397a12054624925bf573cdbca83aa26e2878f910..058bc1e70d0349ff66f831b1f7849fbc6e929d57 100644 |
--- a/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl |
+++ b/mojo/public/tools/bindings/generators/js_templates/module.js.tmpl |
@@ -50,6 +50,8 @@ define("{{module.path}}", [ |
{#--- Interface Client #} |
{%- if interface.client in interfaces|map(attribute='name') %} |
exports.{{interface.name}}.client = {{interface.client}}; |
+{%- elif interface.client in imported_interfaces %} |
+ exports.{{interface.name}}.client = {{imported_interfaces[interface.client]}}; |
{%- endif %} |
{%- endfor %} |