title: Cordova: Uncaught ReferenceError: PhoneGap is not defined using SQLitePlugin.js by chbrody
body: <p>I'm using cordova-2.0.0 and the SQLite Plugin from chbrody on Android.(https://github.com/chbrody/Cordova-SQLitePlugin)</p>
  
  <p>My js-imports are</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8" src="js/cordova-2.0.0.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" charset="utf-8" src="js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" charset="utf-8" src="js/SQLitePlugin.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The js-Error occurs in this line of the SQLitePlugin.js:</p>
  
  <pre><code>return PhoneGap.exec(success, error, "SQLitePlugin", "open", [this.dbPath]);
  </code></pre>
  
  <p>I checked and found that the Framework object is no longer called "PhoneGap" but is renamed to "cordova". Renaming the object in the Plugin js to "cordova" does not work for me either.</p>
  
  <p>After the error occurs the database is created as defined, but the js error still occurs in the log.</p>
  
  <p>Any help appreciated!</p>