Commit b19a240f by Tomas Alabes

Merge pull request #886 from sdumitriu/fix-invalid-r-attribute

Fix invalid r attribute
parents f707f120 355104d4
......@@ -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;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -395,7 +395,7 @@
} else {
// Browser globals (glob is window)
// Raphael adds itself to window
factory(glob, glob.eve);
factory(glob, glob.eve || (typeof require == "function" && require('eve')) );
}
}(this, function (window, eve) {
/*\
......@@ -6926,7 +6926,7 @@
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;
......@@ -8113,5 +8113,8 @@
// Even with AMD, Raphael should be defined globally
oldRaphael.was ? (g.win.Raphael = R) : (Raphael = R);
if(typeof exports == "object"){
module.exports = R;
}
return R;
}));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment