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
5c86a00a
Commit
5c86a00a
authored
Mar 01, 2019
by
Grandschtroumpf
Committed by
yann300
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use `events` instead of `event` for EventEmitter
parent
43c260d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
plugin-manager-proxy.js
src/app/components/plugin-manager-proxy.js
+2
-2
fileManager.js
src/app/files/fileManager.js
+3
-3
compile-tab.js
src/app/tabs/compile-tab.js
+2
-2
No files found.
src/app/components/plugin-manager-proxy.js
View file @
5c86a00a
...
...
@@ -16,12 +16,12 @@ class PluginManagerProxy {
registry
.
get
(
'compilersartefacts'
).
api
[
'__last'
]
=
new
CompilerAbstract
(
languageVersion
,
data
,
source
)
event
.
trigger
(
'sendCompilationResult'
,
[
file
,
source
,
languageVersion
,
data
])
}
instance
.
event
.
on
(
'compilationFinished'
,
this
.
_listener
)
instance
.
event
s
.
on
(
'compilationFinished'
,
this
.
_listener
)
}
unregister
(
instance
)
{
if
(
!
this
.
_listener
)
{
instance
.
event
.
on
(
'compilationFinished'
,
this
.
_listener
)
instance
.
event
s
.
on
(
'compilationFinished'
,
this
.
_listener
)
}
}
...
...
src/app/files/fileManager.js
View file @
5c86a00a
'use strict'
var
EventEmitter
=
require
(
'events'
)
const
EventEmitter
=
require
(
'events'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
globalRegistry
=
require
(
'../../global/registry'
)
var
CompilerImport
=
require
(
'../compiler/compiler-imports'
)
...
...
@@ -14,7 +14,7 @@ class FileManager {
constructor
(
localRegistry
)
{
this
.
openedFiles
=
{}
// list all opened files
this
.
event
=
new
EventManager
()
this
.
nodeEvent
=
new
EventEmitter
()
this
.
events
=
new
EventEmitter
()
this
.
_components
=
{}
this
.
_components
.
compilerImport
=
new
CompilerImport
()
this
.
_components
.
registry
=
localRegistry
||
globalRegistry
...
...
@@ -44,7 +44,7 @@ class FileManager {
self
.
_deps
.
localhostExplorer
.
event
.
register
(
'closed'
,
(
event
)
=>
{
this
.
removeTabsOf
(
self
.
_deps
.
localhostExplorer
)
})
self
.
event
.
register
(
'currentFileChanged'
,
(
file
,
provider
)
=>
{
this
.
nodeEvent
.
emit
(
'currentFileChanged'
,
file
)
this
.
events
.
emit
(
'currentFileChanged'
,
file
)
})
}
...
...
src/app/tabs/compile-tab.js
View file @
5c86a00a
...
...
@@ -20,7 +20,7 @@ const CompilerContainer = require('./compileTab/compilerContainer.js')
class
CompileTab
{
constructor
(
registry
)
{
this
.
event
=
new
EventEmitter
()
this
.
event
s
=
new
EventEmitter
()
this
.
_view
=
{
el
:
null
,
warnCompilationSlow
:
null
,
...
...
@@ -81,7 +81,7 @@ class CompileTab {
this
.
compiler
.
event
.
register
(
'compilationFinished'
,
(
success
,
data
,
source
)
=>
{
if
(
success
)
{
// forwarding the event to the appManager infra
this
.
event
.
emit
(
'compilationFinished'
,
source
.
target
,
source
,
this
.
data
.
selectedVersion
,
data
)
this
.
event
s
.
emit
(
'compilationFinished'
,
source
.
target
,
source
,
this
.
data
.
selectedVersion
,
data
)
// Store the contracts
this
.
data
.
contractsDetails
=
{}
this
.
compiler
.
visitContracts
((
contract
)
=>
{
...
...
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