firstRunAppUpdate.js File Reference

Javascript source for the first-run wizard application update service. More...

Go to the source code of this file.


 if (!("Cc"in this)) this["Cc"]
 if (!("Ci"in this)) this["Ci"]
 if (!("Cr"in this)) this["Cr"]
 if (!("Cu"in this)) this["Cu"]
Cu import ("resource://gre/modules/XPCOMUtils.jsm")
XPCOMUtils defineLazyServiceGetter (firstRunAppUpdate,"mUpdateService",";1","nsIApplicationUpdateService2")
XPCOMUtils defineLazyGetter (firstRunAppUpdate,"mUpdateChecker", function(){return Cc[";1"].createInstance(Ci.nsIUpdateChecker);})
 addEventListener ("load", function(aEvent){removeEventListener(aEvent.type, arguments.callee, false);firstRunAppUpdate.init();}, false)


var firstRunAppUpdate

Detailed Description

Javascript source for the first-run wizard application update service.

This is intended to trigger an application update check during the first run experience.

Definition in file firstRunAppUpdate.js.

Function Documentation

addEventListener ( "load"  ,
function(aEvent){removeEventListener(aEvent.type, arguments.callee, false);firstRunAppUpdate.init();}  ,

event listener to trigger initialization

XPCOMUtils defineLazyGetter ( firstRunAppUpdate  ,
"mUpdateChecker"  ,
function(){return Cc[";1"].createInstance(Ci.nsIUpdateChecker);}   
XPCOMUtils defineLazyServiceGetter ( firstRunAppUpdate  ,
"mUpdateService"  ,
";1"  ,

various lazy getters they should all be documented in the object above.

if ( "Cc"in this)
if ( "Ci"in this)
if ( "Cr"in this)
if ( "Cu"in this)
Cu import ( "resource://gre/modules/XPCOMUtils.jsm"  )

Variable Documentation

var firstRunAppUpdate

Definition at line 63 of file firstRunAppUpdate.js.