Optimize game.putDB.
(cherry picked from commit b622a90f06425d2d91e24fdb81472a721d4358e5)
This commit is contained in:
parent
97db71b24b
commit
41bf403216
|
@ -38148,8 +38148,7 @@
|
|||
return;
|
||||
}
|
||||
lib.status.reload++;
|
||||
var put=lib.db.transaction([type],'readwrite').objectStore(type).put(item,id);
|
||||
put.onsuccess=function(){
|
||||
lib.db.transaction([type],'readwrite').objectStore(type).put(item,id).onsuccess=function(){
|
||||
if(callback){
|
||||
_status.dburgent=true;
|
||||
callback.apply(this,arguments);
|
||||
|
|
Loading…
Reference in New Issue