|
@@ -85,11 +85,11 @@ define( [ "module", "vwf/view", "vwf/utility"], function( module, view, utility)
|
|
if(all){
|
|
if(all){
|
|
if(Object.keys(all).includes(dbPath)){
|
|
if(Object.keys(all).includes(dbPath)){
|
|
|
|
|
|
- //userDB.get('worlds').get(worldName).get(dbPath).get('file').once(function(res) {
|
|
|
|
- let res = all[dbPath].file;
|
|
|
|
|
|
+ userDB.get('worlds').get(worldName).get(dbPath).get('file').load(function(res) {
|
|
|
|
+ //let res = all[dbPath].file;
|
|
loadDoc(res);
|
|
loadDoc(res);
|
|
callback( true );
|
|
callback( true );
|
|
- // })
|
|
|
|
|
|
+ },{wait:300})
|
|
} else {
|
|
} else {
|
|
//NEED TO FIXED!!! Error: Callback was already called.
|
|
//NEED TO FIXED!!! Error: Callback was already called.
|
|
// userDB.get('worlds').get('empty').get(dbPath).get('file').once(function(res) {
|
|
// userDB.get('worlds').get('empty').get(dbPath).get('file').once(function(res) {
|