mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Fix for troublesome values being returned from DroidDB stores. Stick to one level of JSON serialization.
This commit is contained in:
@@ -27,9 +27,8 @@ var DroidDB = function() {
|
||||
* @param rawdata JSON string of the row data
|
||||
* @param id Query id
|
||||
*/
|
||||
DroidDB.prototype.addResult = function(rawdata, id) {
|
||||
DroidDB.prototype.addResult = function(data, id) {
|
||||
try {
|
||||
eval("var data = " + rawdata + ";");
|
||||
var query = this.queryQueue[id];
|
||||
query.resultSet.push(data);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user