var MyObject = {
comp: null,
init() {
this.comp = Components.classes["…"].getService(/* … */);
},
// …
};
window.addEventListener(
"load",
function () {
MyObject.init();
},
false,
);Updating add-ons for Firefox 5 / notebook
Updating add-ons for Firefox 5
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.