Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
31dca0db
Commit
31dca0db
authored
Jan 17, 2017
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Editor: stop earlier if not loading from storage
parent
d88035e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
editor.js
src/app/editor.js
+4
-1
No files found.
src/app/editor.js
View file @
31dca0db
...
@@ -175,10 +175,13 @@ function Editor (doNotLoadStorage, storage) {
...
@@ -175,10 +175,13 @@ function Editor (doNotLoadStorage, storage) {
editor
.
commands
.
bindKeys
({
'ctrl-t'
:
null
})
editor
.
commands
.
bindKeys
({
'ctrl-t'
:
null
})
editor
.
commands
.
bindKeys
({
'ctrl-f'
:
null
})
editor
.
commands
.
bindKeys
({
'ctrl-f'
:
null
})
if
(
doNotLoadStorage
)
{
return
}
var
files
=
getFiles
()
var
files
=
getFiles
()
if
(
files
.
length
===
0
)
{
if
(
files
.
length
===
0
)
{
if
(
doNotLoadStorage
)
return
files
.
push
(
examples
.
ballot
.
name
)
files
.
push
(
examples
.
ballot
.
name
)
storage
.
set
(
examples
.
ballot
.
name
,
examples
.
ballot
.
content
)
storage
.
set
(
examples
.
ballot
.
name
,
examples
.
ballot
.
content
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment