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
96db85b6
Commit
96db85b6
authored
Jan 17, 2017
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Editor: move getFiles to init
parent
3418e821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
editor.js
src/app/editor.js
+4
-2
No files found.
src/app/editor.js
View file @
96db85b6
...
@@ -15,7 +15,7 @@ function Editor (doNotLoadStorage, storage) {
...
@@ -15,7 +15,7 @@ function Editor (doNotLoadStorage, storage) {
var
sessions
=
{}
var
sessions
=
{}
var
sourceAnnotations
=
[]
var
sourceAnnotations
=
[]
setupStuff
(
getFiles
()
)
setupStuff
()
this
.
addMarker
=
function
(
range
,
cssClass
)
{
this
.
addMarker
=
function
(
range
,
cssClass
)
{
return
editor
.
session
.
addMarker
(
range
,
cssClass
)
return
editor
.
session
.
addMarker
(
range
,
cssClass
)
...
@@ -170,7 +170,9 @@ function Editor (doNotLoadStorage, storage) {
...
@@ -170,7 +170,9 @@ function Editor (doNotLoadStorage, storage) {
return
s
return
s
}
}
function
setupStuff
(
files
)
{
function
setupStuff
()
{
var
files
=
getFiles
()
if
(
files
.
length
===
0
)
{
if
(
files
.
length
===
0
)
{
if
(
doNotLoadStorage
)
return
if
(
doNotLoadStorage
)
return
files
.
push
(
examples
.
ballot
.
name
)
files
.
push
(
examples
.
ballot
.
name
)
...
...
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