Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
5838a84b
Commit
5838a84b
authored
Jan 19, 2022
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some internal method names more concise
Remove an uninformative suffix from two method names.
parent
d7568d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
guest.js
src/annotator/guest.js
+4
-4
No files found.
src/annotator/guest.js
View file @
5838a84b
...
@@ -188,7 +188,7 @@ export default class Guest {
...
@@ -188,7 +188,7 @@ export default class Guest {
* @type {PortRPC<HostToGuestEvent, GuestToHostEvent>}
* @type {PortRPC<HostToGuestEvent, GuestToHostEvent>}
*/
*/
this
.
_hostRPC
=
new
PortRPC
();
this
.
_hostRPC
=
new
PortRPC
();
this
.
_connectHost
Events
();
this
.
_connectHost
();
/**
/**
* Channel for guest-sidebar communication.
* Channel for guest-sidebar communication.
...
@@ -196,7 +196,7 @@ export default class Guest {
...
@@ -196,7 +196,7 @@ export default class Guest {
* @type {PortRPC<SidebarToGuestEvent, GuestToSidebarEvent>}
* @type {PortRPC<SidebarToGuestEvent, GuestToSidebarEvent>}
*/
*/
this
.
_sidebarRPC
=
new
PortRPC
();
this
.
_sidebarRPC
=
new
PortRPC
();
this
.
_connectSidebar
Events
();
this
.
_connectSidebar
();
// Set up automatic and integration-triggered injection of client into
// Set up automatic and integration-triggered injection of client into
// iframes in this frame.
// iframes in this frame.
...
@@ -320,7 +320,7 @@ export default class Guest {
...
@@ -320,7 +320,7 @@ export default class Guest {
}
}
}
}
async
_connectHost
Events
()
{
async
_connectHost
()
{
this
.
_hostRPC
.
on
(
this
.
_hostRPC
.
on
(
'clearSelectionExceptIn'
,
'clearSelectionExceptIn'
,
/** @param {string|null} frameIdentifier */
/** @param {string|null} frameIdentifier */
...
@@ -369,7 +369,7 @@ export default class Guest {
...
@@ -369,7 +369,7 @@ export default class Guest {
this
.
_hostRPC
.
connect
(
hostPort
);
this
.
_hostRPC
.
connect
(
hostPort
);
}
}
async
_connectSidebar
Events
()
{
async
_connectSidebar
()
{
// Handlers for events sent when user hovers or clicks on an annotation card
// Handlers for events sent when user hovers or clicks on an annotation card
// in the sidebar.
// in the sidebar.
this
.
_sidebarRPC
.
on
(
this
.
_sidebarRPC
.
on
(
...
...
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