Skip to content

Commit 603851e

Browse files
committed
Global variables accidentally created in basic demo
I came across a syntax error in the downloaded version. Looks like it's been fixed in the repo, but not quite in the correct way.
1 parent 620a92d commit 603851e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/js/basic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,17 @@ function demoStringSplitting() {
309309
}
310310

311311
function demoFromHTML() {
312-
var pdf = new jsPDF('p', 'in', 'letter');
312+
var pdf = new jsPDF('p', 'in', 'letter')
313313

314314
// source can be HTML-formatted string, or a reference
315315
// to an actual DOM element from which the text will be scraped.
316-
source = $('#fromHTMLtestdiv')[0]
316+
, source = $('#fromHTMLtestdiv')[0]
317317

318318
// we support special element handlers. Register them with jQuery-style
319319
// ID selector for either ID or node name. ("#iAmID", "div", "span" etc.)
320320
// There is no support for any other type of selectors
321321
// (class, of compound) at this time.
322-
specialElementHandlers = {
322+
, specialElementHandlers = {
323323
// element with id of "bypass" - jQuery style selector
324324
'#bypassme': function(element, renderer){
325325
// true = "handled elsewhere, bypass text extraction"

0 commit comments

Comments
 (0)