From 068d23bbc3b97283abd5bf8dc1557675450110d3 Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Fri, 6 Apr 2012 07:01:34 +0200 Subject: [PATCH] Fix Android plugin for Cordova 1.5+ --- DroidGap/assets/www/SQLitePlugin.js | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/DroidGap/assets/www/SQLitePlugin.js b/DroidGap/assets/www/SQLitePlugin.js index d377dcb..9c7f6e5 100644 --- a/DroidGap/assets/www/SQLitePlugin.js +++ b/DroidGap/assets/www/SQLitePlugin.js @@ -130,6 +130,28 @@ DDB.prototype.fail = function(reason, id) { } }; +var mycreateUUID = function() { + return myUUIDcreatePart(4) + '-' + + myUUIDcreatePart(2) + '-' + + myUUIDcreatePart(2) + '-' + + myUUIDcreatePart(2) + '-' + + myUUIDcreatePart(6); +}; + +myUUIDcreatePart = function(length) { + var uuidpart = ""; + var i, uuidchar; + for (i=0; i