Skip to content

Commit aec0c91

Browse files
committed
Update to 1.0.115, fix bower support
1 parent a73ecd3 commit aec0c91

File tree

5 files changed

+104
-84
lines changed

5 files changed

+104
-84
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspdf",
3-
"version": "1.0.106",
3+
"version": "1.0.115",
44
"homepage": "https://github.com/mrrio/jspdf",
55
"description": "PDF Document creation from JavaScript",
66
"main": "dist/jspdf.min.js",

build.sh

100644100755
File mode changed.

dist/jspdf.debug.js

+68-67
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.106-git Built on 2014-04-16T20:28
4-
* CommitID 71dbc3a379
3+
* Version 1.0.115-git Built on 2014-04-25T11:37
4+
* CommitID a73ecd3aa1
55
*
66
* Copyright (c) 2010-2014 James Hall, https://github.com/MrRio/jsPDF
77
* 2010 Aaron Spike, https://github.com/acspike
@@ -79,7 +79,8 @@ var jsPDF = (function(global) {
7979
'legal' : [612, 1008],
8080
'junior-legal' : [576, 360],
8181
'ledger' : [1224, 792],
82-
'tabloid' : [792, 1224]
82+
'tabloid' : [792, 1224],
83+
'credit-card' : [153, 243]
8384
};
8485

8586
/**
@@ -1695,7 +1696,7 @@ var jsPDF = (function(global) {
16951696
* pdfdoc.mymethod() // <- !!!!!!
16961697
*/
16971698
jsPDF.API = {events:[]};
1698-
jsPDF.version = "1.0.106-debug 2014-04-16T20:28:diegocr";
1699+
jsPDF.version = "1.0.115-debug 2014-04-25T11:37:jameshall";
16991700

17001701
if (typeof define === 'function') {
17011702
define(function() {
@@ -8531,26 +8532,26 @@ var FlateStream = (function() {
85318532
return dec;
85328533
};
85338534
}
8534-
8535-
if (!Array.prototype.map) {
8536-
Array.prototype.map = function(fun /*, thisArg */) {
8537-
if (this === void 0 || this === null || typeof fun !== "function")
8535+
8536+
if (!Array.prototype.map) {
8537+
Array.prototype.map = function(fun /*, thisArg */) {
8538+
if (this === void 0 || this === null || typeof fun !== "function")
85388539
throw new TypeError();
8539-
8540-
var t = Object(this), len = t.length >>> 0, res = new Array(len);
8541-
var thisArg = arguments.length > 1 ? arguments[1] : void 0;
8542-
for (var i = 0; i < len; i++) {
8543-
// NOTE: Absolute correctness would demand Object.defineProperty
8544-
// be used. But this method is fairly new, and failure is
8545-
// possible only if Object.prototype or Array.prototype
8546-
// has a property |i| (very unlikely), so use a less-correct
8547-
// but more portable alternative.
8548-
if (i in t)
8549-
res[i] = fun.call(thisArg, t[i], i, t);
8550-
}
8551-
8552-
return res;
8553-
};
8540+
8541+
var t = Object(this), len = t.length >>> 0, res = new Array(len);
8542+
var thisArg = arguments.length > 1 ? arguments[1] : void 0;
8543+
for (var i = 0; i < len; i++) {
8544+
// NOTE: Absolute correctness would demand Object.defineProperty
8545+
// be used. But this method is fairly new, and failure is
8546+
// possible only if Object.prototype or Array.prototype
8547+
// has a property |i| (very unlikely), so use a less-correct
8548+
// but more portable alternative.
8549+
if (i in t)
8550+
res[i] = fun.call(thisArg, t[i], i, t);
8551+
}
8552+
8553+
return res;
8554+
};
85548555
}
85558556

85568557
if (!Array.prototype.forEach) {
@@ -8567,55 +8568,55 @@ var FlateStream = (function() {
85678568
}
85688569
};
85698570
}
8570-
8571-
if (!Object.keys) {
8572-
Object.keys = (function () {
8571+
8572+
if (!Object.keys) {
8573+
Object.keys = (function () {
85738574
'use strict';
8574-
8575-
var hasOwnProperty = Object.prototype.hasOwnProperty,
8576-
hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'),
8577-
dontEnums = ['toString','toLocaleString','valueOf','hasOwnProperty',
8578-
'isPrototypeOf','propertyIsEnumerable','constructor'],
8575+
8576+
var hasOwnProperty = Object.prototype.hasOwnProperty,
8577+
hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'),
8578+
dontEnums = ['toString','toLocaleString','valueOf','hasOwnProperty',
8579+
'isPrototypeOf','propertyIsEnumerable','constructor'],
85798580
dontEnumsLength = dontEnums.length;
8580-
8581-
return function (obj) {
8582-
if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) {
8583-
throw new TypeError();
8584-
}
8581+
8582+
return function (obj) {
8583+
if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) {
8584+
throw new TypeError();
8585+
}
85858586
var result = [], prop, i;
8586-
8587-
for (prop in obj) {
8588-
if (hasOwnProperty.call(obj, prop)) {
8589-
result.push(prop);
8590-
}
8591-
}
8592-
8593-
if (hasDontEnumBug) {
8594-
for (i = 0; i < dontEnumsLength; i++) {
8595-
if (hasOwnProperty.call(obj, dontEnums[i])) {
8596-
result.push(dontEnums[i]);
8597-
}
8598-
}
8587+
8588+
for (prop in obj) {
8589+
if (hasOwnProperty.call(obj, prop)) {
8590+
result.push(prop);
8591+
}
85998592
}
8600-
return result;
8601-
};
8602-
}());
8593+
8594+
if (hasDontEnumBug) {
8595+
for (i = 0; i < dontEnumsLength; i++) {
8596+
if (hasOwnProperty.call(obj, dontEnums[i])) {
8597+
result.push(dontEnums[i]);
8598+
}
8599+
}
8600+
}
8601+
return result;
8602+
};
8603+
}());
86038604
}
86048605

8605-
if (!String.prototype.trim) {
8606-
String.prototype.trim = function () {
8607-
return this.replace(/^\s+|\s+$/g, '');
8608-
};
8609-
}
8610-
if (!String.prototype.trimLeft) {
8611-
String.prototype.trimLeft = function() {
8612-
return this.replace(/^\s+/g, "");
8613-
};
8606+
if (!String.prototype.trim) {
8607+
String.prototype.trim = function () {
8608+
return this.replace(/^\s+|\s+$/g, '');
8609+
};
8610+
}
8611+
if (!String.prototype.trimLeft) {
8612+
String.prototype.trimLeft = function() {
8613+
return this.replace(/^\s+/g, "");
8614+
};
8615+
}
8616+
if (!String.prototype.trimRight) {
8617+
String.prototype.trimRight = function() {
8618+
return this.replace(/\s+$/g, "");
8619+
};
86148620
}
8615-
if (!String.prototype.trimRight) {
8616-
String.prototype.trimRight = function() {
8617-
return this.replace(/\s+$/g, "");
8618-
};
8619-
}
8620-
8621+
86218622
})(self);

dist/jspdf.min.js

+34-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/FileSaver.js

0 commit comments

Comments
 (0)