Skip to content

Commit a00e753

Browse files
committed
Fixed issue with saveAs.unload called too early
1 parent ecfd1f6 commit a00e753

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

dist/jspdf.debug.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @preserve
22
* jsPDF - PDF Document creation from JavaScript
3-
* Version 1.0.0-trunk Built on 2014-03-26T17:38
4-
* Commit 8ba7e3810e4337e894299ced85b721a4d76b637f
3+
* Version 1.0.0-trunk Built on 2014-03-26T18:27
4+
* Commit ecfd1f6e09bde59f448e07b59d0cc598c496b39a
55
*
66
* Copyright (c) 2010-2014 James Hall, https://github.com/MrRio/jsPDF
77
* 2010 Aaron Spike, https://github.com/acspike
@@ -765,7 +765,9 @@ var jsPDF = (function(global) {
765765
}
766766
saveAs(getBlob(), options);
767767
if(typeof saveAs.unload === 'function') {
768-
saveAs.unload();
768+
if(global.setTimeout) {
769+
setTimeout(saveAs.unload,70);
770+
}
769771
}
770772
break;
771773
case 'blob':
@@ -1692,7 +1694,7 @@ var jsPDF = (function(global) {
16921694
* pdfdoc.mymethod() // <- !!!!!!
16931695
*/
16941696
jsPDF.API = {events:[]};
1695-
jsPDF.version = "1.0.0-debug 2014-03-26T17:38:diegocr";
1697+
jsPDF.version = "1.0.0-debug 2014-03-26T18:27:diegocr";
16961698

16971699
if (typeof define === 'function') {
16981700
define(function() {

0 commit comments

Comments
 (0)