Skip to content

Commit

Permalink
Merge pull request #886 from sdumitriu/fix-invalid-r-attribute
Browse files Browse the repository at this point in the history
Fix invalid r attribute
  • Loading branch information
tomasAlabes committed Jan 19, 2015
2 parents f707f12 + 355104d commit b19a240
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dev/raphael.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ window.Raphael && window.Raphael.svg && function(R) {
var el = $("rect");
svg.canvas && svg.canvas.appendChild(el);
var res = new Element(el, svg);
res.attrs = {x: x, y: y, width: w, height: h, r: r || 0, rx: r || 0, ry: r || 0, fill: "none", stroke: "#000"};
res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: "none", stroke: "#000"};
res.type = "rect";
$(el, res.attrs);
return res;
Expand Down
Loading

0 comments on commit b19a240

Please sign in to comment.