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
78223ba0
Commit
78223ba0
authored
Jun 09, 2016
by
Denton Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed SOL_CACHE_FILE within the callback
parent
1bd0dbb1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
editor.js
src/app/editor.js
+2
-1
No files found.
src/app/editor.js
View file @
78223ba0
...
@@ -28,8 +28,9 @@ function Editor (loadingFromGist, storage) {
...
@@ -28,8 +28,9 @@ function Editor (loadingFromGist, storage) {
this
.
uploadFile
=
function
(
file
,
callback
)
{
this
.
uploadFile
=
function
(
file
,
callback
)
{
var
fileReader
=
new
FileReader
();
var
fileReader
=
new
FileReader
();
SOL_CACHE_FILE
=
utils
.
fileKey
(
file
.
name
);
var
cacheName
=
utils
.
fileKey
(
file
.
name
);
fileReader
.
onload
=
function
(
e
)
{
fileReader
.
onload
=
function
(
e
)
{
SOL_CACHE_FILE
=
cacheName
;
storage
.
set
(
SOL_CACHE_FILE
,
e
.
target
.
result
);
storage
.
set
(
SOL_CACHE_FILE
,
e
.
target
.
result
);
sessions
[
SOL_CACHE_FILE
]
=
null
;
sessions
[
SOL_CACHE_FILE
]
=
null
;
callback
();
callback
();
...
...
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