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
cbdec82e
Commit
cbdec82e
authored
Jan 23, 2017
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename changed to contentChanged
parent
0ea9bd13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app.js
src/app.js
+1
-1
debugger.js
src/app/debugger.js
+1
-1
editor.js
src/app/editor.js
+1
-1
No files found.
src/app.js
View file @
cbdec82e
...
@@ -575,7 +575,7 @@ var run = function () {
...
@@ -575,7 +575,7 @@ var run = function () {
compileTimeout
=
window
.
setTimeout
(
runCompiler
,
300
)
compileTimeout
=
window
.
setTimeout
(
runCompiler
,
300
)
}
}
editor
.
event
.
register
(
'changed'
,
editorOnChange
)
editor
.
event
.
register
(
'c
ontentC
hanged'
,
editorOnChange
)
// in order to save the file when switching
// in order to save the file when switching
editor
.
event
.
register
(
'sessionSwitched'
,
editorOnChange
)
editor
.
event
.
register
(
'sessionSwitched'
,
editorOnChange
)
...
...
src/app/debugger.js
View file @
cbdec82e
...
@@ -27,7 +27,7 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile, of
...
@@ -27,7 +27,7 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile, of
})
})
// unload if a file has changed (but not if tabs were switched)
// unload if a file has changed (but not if tabs were switched)
editor
.
event
.
register
(
'changed'
,
function
()
{
editor
.
event
.
register
(
'c
ontentC
hanged'
,
function
()
{
self
.
debugger
.
unLoad
()
self
.
debugger
.
unLoad
()
})
})
...
...
src/app/editor.js
View file @
cbdec82e
...
@@ -168,7 +168,7 @@ function Editor (doNotLoadStorage, storage) {
...
@@ -168,7 +168,7 @@ function Editor (doNotLoadStorage, storage) {
event
.
trigger
(
'sessionSwitched'
,
[])
event
.
trigger
(
'sessionSwitched'
,
[])
editor
.
getSession
().
on
(
'change'
,
function
()
{
editor
.
getSession
().
on
(
'change'
,
function
()
{
event
.
trigger
(
'changed'
,
[])
event
.
trigger
(
'c
ontentC
hanged'
,
[])
})
})
})
})
...
...
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