Skip to content

Commit

Permalink
Default value for line, fixes a case where this variable gets undefin…
Browse files Browse the repository at this point in the history
…ed and turns the whole dy into NaN
  • Loading branch information
istvan-antal committed May 10, 2012
1 parent 935e815 commit bfc9c14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions raphael.export.js
Expand Up @@ -126,6 +126,7 @@
var tags = new Array;

map(node.attrs['text'].split('\n'), function(text, iterable, line) {
line = line || 0;
tags.push(tag(
'text',
reduce(
Expand Down

0 comments on commit bfc9c14

Please sign in to comment.