mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-13 12:35:09 -05:00
Updating to Cordova 1.8.x replacing PhoneGap with cordova
This commit is contained in:
parent
3a851b8537
commit
5c55e10ff1
@ -28,7 +28,7 @@ do ->
|
||||
opts = undefined
|
||||
unless @dbPath of @openDBs
|
||||
@openDBs[@dbPath] = true
|
||||
PhoneGap.exec success, error, "SQLitePlugin", "open", [ @dbPath ]
|
||||
cordova.exec success, error, "SQLitePlugin", "open", [ @dbPath ]
|
||||
|
||||
SQLitePlugin::close = (success, error) ->
|
||||
console.log "SQLitePlugin.prototype.close"
|
||||
@ -36,7 +36,7 @@ do ->
|
||||
if @dbPath of @openDBs
|
||||
delete @openDBs[@dbPath]
|
||||
|
||||
PhoneGap.exec null, null, "SQLitePlugin", "close", [ @dbPath ]
|
||||
cordova.exec null, null, "SQLitePlugin", "close", [ @dbPath ]
|
||||
|
||||
get_unique_id = ->
|
||||
id = new Date().getTime()
|
||||
@ -181,7 +181,7 @@ do ->
|
||||
error txself, res
|
||||
transaction_callback_queue[@trans_id]["success"] = successcb
|
||||
transaction_callback_queue[@trans_id]["error"] = errorcb
|
||||
PhoneGap.exec null, null, "SQLitePlugin", "executeSqlBatch", transaction_queue[@trans_id]
|
||||
cordova.exec null, null, "SQLitePlugin", "executeSqlBatch", transaction_queue[@trans_id]
|
||||
|
||||
# required for callbacks:
|
||||
root.SQLitePluginTransaction = SQLitePluginTransaction
|
||||
|
Loading…
Reference in New Issue
Block a user