title: confirm dialog returns false immediately
body: <p>This is my code:</p>
  
  <pre><code>index.html:
      ...
        &lt;script type="text/javascript" charset="utf-8" src="main.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body onload="init();"&gt;&lt;/body&gt;
      ...
  
  main.js:
      function onBackPressed(e) {
          console.log("onBackPressed()");
          var answer = confirm("Do you want to exit?");
          console.log(answer);
          if (answer) {
              navigator.app.exitApp();
          }
      }
      function init() {
          ...
          document.addEventListener("backbutton", onBackPressed, false);
          ...
      }
  </code></pre>
  
  <p>When I exit application first time, everything seems to be ok.
  The problem is when I start application next time, confirmation dialog returns false immediately and dialog stay visible. So when I click "OK" nothing will happen.</p>
  
  <p>Here is output from logcat:</p>
  
  <pre><code>04-11 16:16:26.444: D/PhoneGapLog(18356): onBackPressed()
  04-11 16:16:26.444: D/PhoneGapLog(18356): file:///android_asset/www/main.js: Line 49 : onBackPressed()
  04-11 16:16:26.444: I/Web Console(18356): onBackPressed() at file:///android_asset/www/main.js:49
  04-11 16:16:26.584: D/PhoneGapLog(18356): false
  04-11 16:16:26.584: D/PhoneGapLog(18356): file:///android_asset/www/main.js: Line 51 : false
  04-11 16:16:26.584: I/Web Console(18356): false at file:///android_asset/www/main.js:51
  </code></pre>
  
  <p>Is this a bug in phonegap or android? Or I'm doing something wrong?</p>
  
  <p>I use Nexus One with android 2.3.6 and phonegap 1.4.1 (version 1.5 have issue with backbutton event).</p>