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