From be688e8869c3af15c75e17441e3ac612b382fdb8 Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Sun, 22 Apr 2012 07:27:44 +0200 Subject: [PATCH] Cleanup Android JS remove some extra block scope --- Android/assets/www/SQLitePlugin.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Android/assets/www/SQLitePlugin.js b/Android/assets/www/SQLitePlugin.js index 6349baf..657a588 100755 --- a/Android/assets/www/SQLitePlugin.js +++ b/Android/assets/www/SQLitePlugin.js @@ -1,7 +1,7 @@ (function() { var root; root = this; - root.SQLitePlugin = (function() { + //root.SQLitePlugin = (function() { console.log("root.SQLitePlugin"); SQLitePlugin.prototype.openDBs = {}; @@ -52,7 +52,8 @@ } }; return SQLitePlugin; - })(); + //})(); + root.SQLitePlugin = SQLitePlugin; get_unique_id = function() { var id = new Date().getTime(); @@ -65,7 +66,7 @@ } transaction_queue = []; transaction_callback_queue = new Object(); - root.SQLitePluginTransaction = (function() { + //root.SQLitePluginTransaction = (function() { console.log("root.SQLitePluginTransaction"); function SQLitePluginTransaction(dbPath) { @@ -247,7 +248,8 @@ PhoneGap.exec(null, null, "SQLitePlugin", "executeSqlBatch", transaction_queue[this.trans_id]); }; return SQLitePluginTransaction; - })(); + //})(); + root.SQLitePluginTransaction = SQLitePluginTransaction; root.sqlitePlugin = { openDatabase: function(dbPath, version, displayName, estimatedSize, creationCallback, errorCallback) {