Chromium Code Reviews| 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 d725139db81955bff7d824ab1d2029c7d515d1a7..9d0ba1b2121e1c8fa62b2bf4c2e300de2412883a 100644 |
| --- a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
| +++ b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
| @@ -3,14 +3,19 @@ |
| // found in the LICENSE file. |
| define("{{module.path}}", [ |
| +{%- if module.path != "mojo/public/interfaces/bindings/interface_control_messages.mojom" %} |
|
yzshen1
2017/02/11 01:11:30
nit: we don't have style guide for tmpl files, but
wangjimmy
2017/02/13 20:43:07
Done.
|
| "mojo/public/js/bindings", |
| +{%- endif %} |
| "mojo/public/js/codec", |
| "mojo/public/js/core", |
| "mojo/public/js/validator", |
| {%- for import in imports %} |
| "{{import.module.path}}", |
| {%- endfor %} |
| -], function(bindings, codec, core, validator |
| +], function( |
| +{%- if module.path != "mojo/public/interfaces/bindings/interface_control_messages.mojom" -%} |
| +bindings, {% endif -%} |
| +codec, core, validator |
| {%- for import in imports -%} |
| , {{import.unique_name}} |
| {%- endfor -%} |