Skip to content

Commit

Permalink
• changed gradient syntax to "<angle>-<color>-[<color>[:<offset>]…]-<…
Browse files Browse the repository at this point in the history
…color>" in order to make it more readable
  • Loading branch information
Dmitry Baranovskiy authored and Dmitry Baranovskiy committed Mar 10, 2009
1 parent 128aa56 commit f64adff
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions raphael.js
Expand Up @@ -472,7 +472,7 @@ var Raphael = (function () {
};
var toGradient = function (gradient) {
if (typeof gradient == "string") {
gradient = gradient.split(/\s*\/\s*/);
gradient = gradient.split(/\s*\-\s*/);
var angle = gradient.shift();
if (angle.toLowerCase() == "v") {
angle = 90;
Expand Down Expand Up @@ -827,12 +827,6 @@ var Raphael = (function () {
case "stroke-dasharray":
addDashes(o, value);
break;
// case "text":
// if (o.type == "text") {
// o.node.childNodes.length && o.node.removeChild(o.node.firstChild);
// o.node.appendChild(doc.createTextNode(value));
// }
// break;
case "rotation":
o.rotate(value, true);
break;
Expand Down

0 comments on commit f64adff

Please sign in to comment.