Sources/Elastos/Frameworks/Droid/DevSamples/bak/Launcher/xul/components/PromptService.js
/*
   * ---------- interface disambiguation ----------
   *
   * XXX Copied from nsPrompter.js.
   *
   * nsIPrompt and nsIAuthPrompt share 3 method names with slightly
   * different arguments. All but prompt() have the same number of
   * arguments, so look at the arg types to figure out how we're being
   * called. :-(
   */
interface disambiguation
XXX Copied from nsPrompter.js.

nsIPrompt and nsIAuthPrompt share 3 method names with slightly
different arguments. All but prompt() have the same number of
arguments, so look at the arg types to figure out how we're being
called.
interface disambiguation XXX Copied from nsPrompter . js . nsIPrompt and nsIAuthPrompt share 3 method names with slightly different arguments . All but prompt () have the same number of arguments so look at the arg types to figure out how we ' re being called .
function prompt() {
    if (gPromptService.inContentProcess)
      return gPromptService.callProxy("prompt", [null].concat(Array.prototype.slice.call(arguments)));
    if (typeof arguments[2] == "object")
      return this.nsIPrompt_prompt.apply(this, arguments);
    else
      return this.nsIAuthPrompt_prompt.apply(this, arguments);
  }
function prompt ( ) { if ( gPromptService . inContentProcess ) return gPromptService . callProxy ( "prompt" , [ null ] . concat ( Array . prototype . slice . call ( arguments ) ) ) ; if ( typeof arguments [ 2 ] == "object" ) return this . nsIPrompt_prompt . apply ( this , arguments ) ; else return this . nsIAuthPrompt_prompt . apply ( this , arguments ) ; }
---------- interface disambiguation
 XXX Copied from nsPrompter.js.
---------- interface disambiguation XXX Copied from nsPrompter . js .
// also, the nsIPrompt flavor has 5 args instead of 6.