mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-21 16:35:04 -05:00
Cleanup Android JS remove some extra block scope
This commit is contained in:
parent
b0de36dfc2
commit
be688e8869
@ -1,7 +1,7 @@
|
|||||||
(function() {
|
(function() {
|
||||||
var root;
|
var root;
|
||||||
root = this;
|
root = this;
|
||||||
root.SQLitePlugin = (function() {
|
//root.SQLitePlugin = (function() {
|
||||||
console.log("root.SQLitePlugin");
|
console.log("root.SQLitePlugin");
|
||||||
SQLitePlugin.prototype.openDBs = {};
|
SQLitePlugin.prototype.openDBs = {};
|
||||||
|
|
||||||
@ -52,7 +52,8 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return SQLitePlugin;
|
return SQLitePlugin;
|
||||||
})();
|
//})();
|
||||||
|
root.SQLitePlugin = SQLitePlugin;
|
||||||
get_unique_id = function()
|
get_unique_id = function()
|
||||||
{
|
{
|
||||||
var id = new Date().getTime();
|
var id = new Date().getTime();
|
||||||
@ -65,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
transaction_queue = [];
|
transaction_queue = [];
|
||||||
transaction_callback_queue = new Object();
|
transaction_callback_queue = new Object();
|
||||||
root.SQLitePluginTransaction = (function() {
|
//root.SQLitePluginTransaction = (function() {
|
||||||
console.log("root.SQLitePluginTransaction");
|
console.log("root.SQLitePluginTransaction");
|
||||||
function SQLitePluginTransaction(dbPath)
|
function SQLitePluginTransaction(dbPath)
|
||||||
{
|
{
|
||||||
@ -247,7 +248,8 @@
|
|||||||
PhoneGap.exec(null, null, "SQLitePlugin", "executeSqlBatch", transaction_queue[this.trans_id]);
|
PhoneGap.exec(null, null, "SQLitePlugin", "executeSqlBatch", transaction_queue[this.trans_id]);
|
||||||
};
|
};
|
||||||
return SQLitePluginTransaction;
|
return SQLitePluginTransaction;
|
||||||
})();
|
//})();
|
||||||
|
root.SQLitePluginTransaction = SQLitePluginTransaction;
|
||||||
|
|
||||||
root.sqlitePlugin = {
|
root.sqlitePlugin = {
|
||||||
openDatabase: function(dbPath, version, displayName, estimatedSize, creationCallback, errorCallback) {
|
openDatabase: function(dbPath, version, displayName, estimatedSize, creationCallback, errorCallback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user