Browse Source

Execute the callback in StorageManager even with an empty storage

Basically, without it the `postLoad` in modules is not called.
Faced it because the undo manager was not working
pull/856/head
Artur Arseniev 9 years ago
parent
commit
9f8be31b65
  1. 5
      src/storage_manager/index.js

5
src/storage_manager/index.js

@ -193,7 +193,7 @@ module.exports = () => {
for (var i = 0, len = keys.length; i < len; i++)
keysF.push(c.id + keys[i]);
st &&
if (st) {
st.load(keysF, res => {
// Restore keys name
var reg = new RegExp('^' + c.id + '');
@ -204,6 +204,9 @@ module.exports = () => {
clb && clb(result);
});
} else {
clb && clb(result);
}
},
/**

Loading…
Cancel
Save