Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: bootstrap.js.tmpl

Issue 29329666: Issue 3260 - Remove expression closure from build tools (Closed)
Patch Set: Created Nov. 2, 2015, 10:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bootstrap.js.tmpl
===================================================================
--- a/bootstrap.js.tmpl
+++ b/bootstrap.js.tmpl
@@ -16,17 +16,20 @@ let XMLHttpRequest = Components.Construc
let addonData = null;
function startup(params, reason)
{
addonData = params;
{%- if hasChromeRequires %}
Services.obs.addObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require", true);
- onShutdown.add(function() Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require"));
+ onShutdown.add(function()
+ {
+ Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require");
+ });
{%- set hasShutdownHandlers = True %}
{%- endif %}
require("main");
}
function shutdown(params, reason)
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld