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"]; |