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
ceb9d4b2
Commit
ceb9d4b2
authored
Dec 11, 2014
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PDF plugin
... to cfac672e (typed-packaging branch). Fixes #1788.
parent
17bc4593
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
annotator.pdf.js
h/static/scripts/vendor/annotator.pdf.js
+11
-7
No files found.
h/static/scripts/vendor/annotator.pdf.js
View file @
ceb9d4b2
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
6623b2c
** Annotator 1.2.6-dev-
bee2b25
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2014-12-11 0
1:33:3
5Z
** Built at: 2014-12-11 0
2:43:0
5Z
*/
...
...
@@ -124,9 +124,7 @@
}
}
});
return
$
(
this
.
_viewer
.
container
).
on
(
'scroll'
,
function
()
{
return
_this
.
_onScroll
();
});
return
this
.
_viewer
.
container
.
addEventListener
(
"scroll"
,
this
.
_onScroll
);
};
PDFTextMapper
.
prototype
.
_extractionPattern
=
/
[
]
+/g
;
...
...
@@ -217,7 +215,7 @@
};
PDFTextMapper
.
prototype
.
getDocumentInfo
=
function
()
{
return
this
.
app
.
documentInfo
;
return
this
.
_
app
.
documentInfo
;
};
return
PDFTextMapper
;
...
...
@@ -314,7 +312,13 @@
return
new
Promise
(
function
(
resolve
,
reject
)
{
if
(
_this
.
annotator
.
domMapper
.
waitForInit
!=
null
)
{
return
_this
.
annotator
.
domMapper
.
waitForInit
().
then
(
function
()
{
var
error
;
try
{
return
resolve
(
_this
.
_metadata
());
}
catch
(
_error
)
{
error
=
_error
;
return
reject
(
"Internal error"
);
}
});
}
else
{
return
reject
(
"Not a PDF dom mapper."
);
...
...
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