Index: mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
diff --git a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
index 1fe27f72dd25dc87ccabb5cd2c9997f65a51ed30..3d0a4f480cbb932f788086bf08ccca60ecf8375d 100644 |
--- a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
+++ b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
@@ -22,13 +22,12 @@ |
{%- for import in imports %} |
var {{import.unique_name}} = |
- mojo.internal.exposeNamespace('{{import.module.namespace}}'); |
+ mojo.internal.exposeNamespace('{{import.namespace}}'); |
if (mojo.config.autoLoadMojomDeps) { |
mojo.internal.loadMojomIfNecessary( |
- '{{import.module.path}}', |
- new URL( |
- '{{import.module|get_relative_path(module)}}.js', |
- document.currentScript.src).href); |
+ '{{import.path}}', |
+ new URL('{{import|get_relative_path(module)}}.js', |
+ document.currentScript.src).href); |
} |
{%- endfor %} |
@@ -49,7 +48,7 @@ define("{{module.path}}", [ |
"mojo/public/js/core", |
"mojo/public/js/validator", |
{%- for import in imports %} |
- "{{import.module.path}}", |
+ "{{import.path}}", |
{%- endfor %} |
], function( |
{%- if module.path != |