Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
fix incorrect xml attribute for links
Browse files Browse the repository at this point in the history
resolves issue 106: #106
  • Loading branch information
natergj committed Nov 25, 2017
1 parent 6f1c432 commit 3a52197
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/lib/worksheet/classes/hyperlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class Hyperlink { //§18.3.1.47 hyperlink (Hyperlink)
constructor(opts) {
opts = opts ? opts : {};

if (opts.ref === undefined) {
throw new TypeError('ref is a required option when creating a hyperlink');
}
Expand Down Expand Up @@ -36,12 +36,12 @@ class Hyperlink { //§18.3.1.47 hyperlink (Hyperlink)
thisEle.att('display', this.display);
}
if (this.location !== undefined) {
thisEle.att('location', this.location);
}
thisEle.att('address', this.location);
}
if (this.tooltip !== undefined) {
thisEle.att('tooltip', this.tooltip);
}
thisEle.up();
}
thisEle.up();
}
}

Expand Down

0 comments on commit 3a52197

Please sign in to comment.