Fix addressing wrong href in previous commit #52368

This commit is contained in:
Hadi Nategh 2015-04-01 16:10:43 +00:00
parent 3987e3f033
commit ba19d9dab9
2 changed files with 2 additions and 2 deletions

View File

@ -881,7 +881,7 @@
} }
else if (isTarget(options.downloadClass)) { else if (isTarget(options.downloadClass)) {
// Click on "download" control // Click on "download" control
if (typeof event.target.download_href != 'undefined') if (this.list[this.getIndex()] && typeof this.list[this.getIndex()].download_href != 'undefined')
{ {
event.target.href = this.list[this.getIndex()].download_href; event.target.href = this.list[this.getIndex()].download_href;
} }

File diff suppressed because one or more lines are too long