B2G/gecko/b2g/chrome/content/identity.js
/*
 * doInternalWatch - call the internal.watch api and relay the results
 * up to the controller.
 */
call the internal.watch api and relay the results
up to the controller.
call the internal . watch api and relay the results up to the controller .
function doInternalWatch() {
  log("doInternalWatch:", options, isLoaded);
  if (options && isLoaded) {
    let BrowserID = content.wrappedJSObject.BrowserID;
    BrowserID.internal.watch(function(aParams, aInternalParams) {
        identityCall(aParams);
        if (aParams.method === "ready") {
          closeIdentityDialog();
        }
      },
      JSON.stringify(options),
      function(...things) {
        log("(watch) internal: ", things);
      }
    );
  }
}
function doInternalWatch ( ) { log ( "doInternalWatch:" , options , isLoaded ) ; if ( options && isLoaded ) { let BrowserID = content . wrappedJSObject . BrowserID ; BrowserID . internal . watch ( function ( aParams , aInternalParams ) { identityCall ( aParams ) ; if ( aParams . method === "ready" ) { closeIdentityDialog ( ) ; } } , JSON . stringify ( options ) , function ( ... things ) { log ( "(watch) internal: " , things ) ; } ) ; } }
doInternalWatch - call the internal.watch api and relay the results
 up to the controller.
doInternalWatch - call the internal . watch api and relay the results up to the controller .
// internal watch log callback