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
926adfeb
Commit
926adfeb
authored
Aug 04, 2020
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of misc typechecking errors in src/annotator
parent
201a2eb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
annotation-sync.js
src/annotator/annotation-sync.js
+1
-1
toolbar.js
src/annotator/components/toolbar.js
+2
-2
No files found.
src/annotator/annotation-sync.js
View file @
926adfeb
...
...
@@ -152,7 +152,7 @@ AnnotationSync.prototype._tag = function (ann, tag) {
if
(
ann
.
$tag
)
{
return
ann
;
}
tag
=
tag
||
window
.
btoa
(
Math
.
random
());
tag
=
tag
||
window
.
btoa
(
Math
.
random
()
.
toString
()
);
Object
.
defineProperty
(
ann
,
'$tag'
,
{
value
:
tag
,
});
...
...
src/annotator/components/toolbar.js
View file @
926adfeb
...
...
@@ -6,7 +6,7 @@ import SvgIcon from '../../shared/components/svg-icon';
/**
* @param {Object} props
* @param {import("preact
/hooks
").Ref<HTMLButtonElement>} [props.buttonRef]
* @param {import("preact").Ref<HTMLButtonElement>} [props.buttonRef]
* @param {boolean} [props.expanded]
* @param {string} [props.extraClasses]
* @param {string} props.label
...
...
@@ -74,7 +74,7 @@ ToolbarButton.propTypes = {
* Callback to toggle visibility of highlights in the document.
* @prop {() => any} toggleSidebar -
* Callback to toggle the visibility of the sidebar.
* @prop {import("preact
/hooks
").Ref<HTMLButtonElement>} [toggleSidebarRef] -
* @prop {import("preact").Ref<HTMLButtonElement>} [toggleSidebarRef] -
* Ref that gets set to the toolbar button for toggling the sidebar.
* This is exposed to enable the drag-to-resize functionality of this
* button.
...
...
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