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
9f3884dd
Commit
9f3884dd
authored
Jan 08, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove settimeout
parent
aa863b9d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
compiler.js
src/app/compiler/compiler.js
+0
-2
basicReadOnlyExplorer.js
src/app/files/basicReadOnlyExplorer.js
+1
-1
browser-files.js
src/app/files/browser-files.js
+0
-2
No files found.
src/app/compiler/compiler.js
View file @
9f3884dd
...
...
@@ -49,9 +49,7 @@ function Compiler (handleImportCall) {
self
.
lastCompilationResult
=
null
self
.
event
.
trigger
(
'compilationFinished'
,
[
false
,
{
'error'
:
{
formattedMessage
:
error
,
severity
:
'error'
}},
files
])
}
else
{
setTimeout
(
function
()
{
compileJSON
(
input
,
optimize
?
1
:
0
)
},
0
)
}
})
}
...
...
src/app/files/basicReadOnlyExplorer.js
View file @
9f3884dd
...
...
@@ -108,7 +108,7 @@ class BasicReadOnlyExplorer {
'/content'
:
self
.
get
(
path
)
})
})
setTimeout
(
_
=>
callback
(
null
,
tree
),
0
)
callback
(
null
,
tree
)
}
removePrefix
(
path
)
{
...
...
src/app/files/browser-files.js
View file @
9f3884dd
...
...
@@ -118,7 +118,6 @@ function Files (storage) {
this
.
resolveDirectory
=
function
(
path
,
callback
)
{
var
self
=
this
// path = '' + (path || '')
setTimeout
(
function
()
{
function
hashmapize
(
obj
,
path
,
val
)
{
var
nodes
=
path
.
split
(
'/'
)
var
i
=
0
...
...
@@ -153,7 +152,6 @@ function Files (storage) {
})
})
callback
(
null
,
tree
)
},
0
)
}
this
.
removePrefix
=
function
(
path
)
{
...
...
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