Skip to content

Commit

Permalink
Fix: Bind download function in Preview.js (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Nov 29, 2017
1 parent 014ae35 commit 359abcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class Preview extends EventEmitter {
this.browserInfo = Browser.getBrowserInfo();

// Bind context for callbacks
this.download = this.download.bind(this);
this.print = this.print.bind(this);
this.handleTokenResponse = this.handleTokenResponse.bind(this);
this.handleFileInfoResponse = this.handleFileInfoResponse.bind(this);
Expand Down

0 comments on commit 359abcf

Please sign in to comment.