mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(config) onLocalStorageChange map: el, number -> getById id, el
This commit is contained in:
parent
d449e86d0e
commit
d4d8e9560b
1 changed files with 3 additions and 1 deletions
|
|
@ -251,7 +251,9 @@ var CloudCmd, Util, DOM, io;
|
|||
|
||||
function onLocalStorageChange() {
|
||||
var names = ['diff', 'buffer', 'dirStorage', 'localStorage'],
|
||||
elements = names.map(DOM.getById),
|
||||
elements = names.map(function(name) {
|
||||
return DOM.getById(name);
|
||||
}),
|
||||
|
||||
el = {},
|
||||
msg = 'Diff, Buffer and Directory Storage do not work without localStorage',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue