Skip to content
This repository

Simple default value fix #13

Merged
merged 1 commit into from about 2 years ago

2 participants

István Miklós Antal Elbert Alias
István Miklós Antal

Default value for line, fixes a case where this variable gets undefined and turns the whole dy into NaN

Elbert Alias
Owner
ElbertF commented

Thanks!

Elbert Alias ElbertF merged commit 1f6310f into from
Elbert Alias ElbertF closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 10, 2012
István Miklós Antal istvan-antal Default value for line, fixes a case where this variable gets undefin…
…ed and turns the whole dy into NaN
bfc9c14
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  raphael.export.js
1  raphael.export.js
@@ -126,6 +126,7 @@
126 126 var tags = new Array;
127 127
128 128 map(node.attrs['text'].split('\n'), function(text, iterable, line) {
  129 + line = line || 0;
129 130 tags.push(tag(
130 131 'text',
131 132 reduce(

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.