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

Unified Diff: lib/main.js

Issue 5155615986941952: Issue 2546 - Fixed documentation generation for Customizations (Closed)
Patch Set: Created May 18, 2015, 7:25 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: lib/main.js
===================================================================
--- a/lib/main.js
+++ b/lib/main.js
@@ -143,18 +143,20 @@ var ToolbarIconDisplay =
get template()
{
let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest);
request.open("GET", "chrome://abpcustomization/content/toolbarIconDisplay.css", false);
request.overrideMimeType("text/plain");
request.send();
let result = request.responseText;
- delete this.template;
- this.__defineGetter__("template", function() result);
+ Object.defineProperty(this, "template", {
+ value: result,
+ enumerable: true
+ });
return this.template;
},
get stylesheet()
{
const DISPLAY_IMAGE = 1;
const DISPLAY_TEXT = 2;
let type = Prefs["toolbar-icon-display"];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld