Revert "session: load: replace fat state init with a faster one (goal is to make sure value listeners are up to date at init)"
This reverts commit cec68e76aa.
This commit is contained in:
parent
cec68e76aa
commit
200d8e922c
1 changed files with 2 additions and 13 deletions
|
|
@ -4,8 +4,7 @@ var ipc = require('../ipc/'),
|
|||
editor = require('../editor/'),
|
||||
lobby = require('../ui/lobby'),
|
||||
{loading, icon, Popup} = require('../ui/utils'),
|
||||
{saveAs} = require('file-saver'),
|
||||
widgetManager = require('./widgets')
|
||||
{saveAs} = require('file-saver')
|
||||
|
||||
|
||||
var SessionManager = class SessionManager {
|
||||
|
|
@ -54,17 +53,7 @@ var SessionManager = class SessionManager {
|
|||
throw err
|
||||
}
|
||||
|
||||
for (var h in widgetManager.widgets) {
|
||||
if (widgetManager.widgets[h].value !== undefined) {
|
||||
widgetManager.trigger('change', [{
|
||||
widget: widgetManager.widgets[h],
|
||||
id: widgetManager.widgets[h].getProp('id'),
|
||||
linkId: widgetManager.widgets[h].getProp('linkId'),
|
||||
options: {}
|
||||
}])
|
||||
}
|
||||
}
|
||||
|
||||
state.set(state.get(), false)
|
||||
if (editor.enabled) editor.disable()
|
||||
|
||||
DOM.dispatchEvent(window, 'resize')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue