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
f265dffd
Commit
f265dffd
authored
Oct 11, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test before adding/removing
parent
9febad6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
execution-context.js
remix-lib/src/execution/execution-context.js
+8
-4
No files found.
remix-lib/src/execution/execution-context.js
View file @
f265dffd
...
@@ -136,13 +136,17 @@ function ExecutionContext () {
...
@@ -136,13 +136,17 @@ function ExecutionContext () {
}
}
this
.
removeProvider
=
function
(
name
)
{
this
.
removeProvider
=
function
(
name
)
{
delete
this
.
customNetWorks
[
name
]
if
(
name
&&
this
.
customNetWorks
[
name
])
{
self
.
event
.
trigger
(
'removeProvider'
,
[
name
])
delete
this
.
customNetWorks
[
name
]
self
.
event
.
trigger
(
'removeProvider'
,
[
name
])
}
}
}
this
.
addProvider
=
function
(
network
)
{
this
.
addProvider
=
function
(
network
)
{
this
.
customNetWorks
[
network
.
name
]
=
network
if
(
network
&&
network
.
name
&&
network
.
url
)
{
self
.
event
.
trigger
(
'addProvider'
,
[
network
])
this
.
customNetWorks
[
network
.
name
]
=
network
self
.
event
.
trigger
(
'addProvider'
,
[
network
])
}
}
}
this
.
internalWeb3
=
function
()
{
this
.
internalWeb3
=
function
()
{
...
...
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