Refactor LinkAnnotation slightly to add data.url/data.dest at the end

This patch also makes sure that all URLs are converted to the correct encoding.
This commit is contained in:
Jonas Jenwald 2016-03-03 13:07:22 +01:00
parent 4a601ffc28
commit b63ef7a8b6
3 changed files with 60 additions and 49 deletions

View file

@ -284,7 +284,7 @@ var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
if (this.data.action) {
this._bindNamedAction(link, this.data.action);
} else {
this._bindLink(link, ('dest' in this.data) ? this.data.dest : null);
this._bindLink(link, (this.data.dest || null));
}
}