mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-14 13:05:12 -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
|
opts = undefined
|
||||||
unless @dbPath of @openDBs
|
unless @dbPath of @openDBs
|
||||||
@openDBs[@dbPath] = true
|
@openDBs[@dbPath] = true
|
||||||
PhoneGap.exec success, error, "SQLitePlugin", "open", [ @dbPath ]
|
cordova.exec success, error, "SQLitePlugin", "open", [ @dbPath ]
|
||||||
|
|
||||||
SQLitePlugin::close = (success, error) ->
|
SQLitePlugin::close = (success, error) ->
|
||||||
console.log "SQLitePlugin.prototype.close"
|
console.log "SQLitePlugin.prototype.close"
|
||||||
@ -36,7 +36,7 @@ do ->
|
|||||||
if @dbPath of @openDBs
|
if @dbPath of @openDBs
|
||||||
delete @openDBs[@dbPath]
|
delete @openDBs[@dbPath]
|
||||||
|
|
||||||
PhoneGap.exec null, null, "SQLitePlugin", "close", [ @dbPath ]
|
cordova.exec null, null, "SQLitePlugin", "close", [ @dbPath ]
|
||||||
|
|
||||||
get_unique_id = ->
|
get_unique_id = ->
|
||||||
id = new Date().getTime()
|
id = new Date().getTime()
|
||||||
@ -181,7 +181,7 @@ do ->
|
|||||||
error txself, res
|
error txself, res
|
||||||
transaction_callback_queue[@trans_id]["success"] = successcb
|
transaction_callback_queue[@trans_id]["success"] = successcb
|
||||||
transaction_callback_queue[@trans_id]["error"] = errorcb
|
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:
|
# required for callbacks:
|
||||||
root.SQLitePluginTransaction = SQLitePluginTransaction
|
root.SQLitePluginTransaction = SQLitePluginTransaction
|
||||||
|
Loading…
Reference in New Issue
Block a user