B2G/gecko/dom/identity/nsDOMIdentity.js
/**
   * Helper to create messages to send using a message manager.
   * Pass through user options if they are not functions.  Always
   * overwrite id and origin.  Caller does not get to set those.
   */
Helper to create messages to send using a message manager.
Pass through user options if they are not functions.  Always
overwrite id and origin.  Caller does not get to set those.
Helper to create messages to send using a message manager . Pass through user options if they are not functions . Always overwrite id and origin . Caller does not get to set those .
function DOMIdentityMessage(aOptions) {
    aOptions = aOptions || {};
    let message = {};
    objectCopy(aOptions, message);
    message.id = this._id;
    message.origin = this._origin;
    return message;
  }
function DOMIdentityMessage ( aOptions ) { aOptions = aOptions || { } ; let message = { } ; objectCopy ( aOptions , message ) ; message . id = this . _id ; message . origin = this . _origin ; return message ; }
Helper to create messages to send using a message manager.
Helper to create messages to send using a message manager .
// outer window id // window origin