Skip to content

Commit

Permalink
Fix: Properly bind download button in PreviewErrorViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press committed Dec 1, 2017
1 parent a24b5bb commit 16e4dd4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/lib/viewers/error/PreviewErrorViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import './PreviewError.scss';

class PreviewErrorViewer extends BaseViewer {
/**
* [constructor]
*
* @param {string|HTMLElement} container - The container
* @param {Object} options - Some options
* @return {Error} Error instance
* @inheritdoc
*/
constructor(options) {
super(options);
this.download = this.download.bind(this);
}

/**
* @inheritdoc
*/
setup() {
// Call super() first to set up common layout
Expand Down

0 comments on commit 16e4dd4

Please sign in to comment.