Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl

Issue 2965803003: Mojo JS bindings: add support to generate "dual-mode" code. (Closed)
Patch Set: . Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl b/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
index 7d7f06558aa1c8bcba6af0268680054a73758e03..21165ddcad26228fd8d544570880bb580812e4fc 100644
--- a/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/js_templates/module_definition.tmpl
@@ -25,12 +25,6 @@
{%- include "interface_definition.tmpl" %}
{%- endfor %}
-{%- if use_new_js_bindings %}
- var exports = mojo.internal.exposeNamespace("{{module.namespace}}");
-{%- else %}
- var exports = {};
-{%- endif %}
-
{%- for constant in module.constants %}
exports.{{constant.name}} = {{constant.name}};
{%- endfor %}

Powered by Google App Engine
This is Rietveld 408576698