Fix undefined layout bug

This commit is contained in:
Liang Ding 2016-02-16 21:24:37 +08:00
parent 3a3ffb1bc4
commit 952daeb76c
1 changed files with 9 additions and 1 deletions

View File

@ -19,13 +19,21 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.2, Dec 15, 2015
* @version 1.1.2.2, Feb 16, 2016
*/
var windows = {
isMaxEditor: false,
outerLayout: {},
innerLayout: {},
init: function () {
if (!config.latestSessionContent) {
config.latestSessionContent = {
"fileTree": [],
"files": [],
"currentFile": "",
};
}
if (!config.latestSessionContent.layout) {
config.latestSessionContent.layout = {
"side": {