Commit dfe115a9 by Dmitry Baranovskiy

Quick fix of gradient bug

parent cf76de4f
...@@ -1069,6 +1069,7 @@ var Raphael = (function (type) { ...@@ -1069,6 +1069,7 @@ var Raphael = (function (type) {
ScaleY = 1, ScaleY = 1,
tMatrix = null; tMatrix = null;
this[0] = node; this[0] = node;
this.svg = svg;
this.attrs = this.attrs || {}; this.attrs = this.attrs || {};
this.transformations = []; // rotate, translate, scale, matrix this.transformations = []; // rotate, translate, scale, matrix
this.rotate = function (deg) { this.rotate = function (deg) {
...@@ -1214,7 +1215,7 @@ var Raphael = (function (type) { ...@@ -1214,7 +1215,7 @@ var Raphael = (function (type) {
} }
if (params.gradient) { if (params.gradient) {
this.attrs.gradient = params.gradient; this.attrs.gradient = params.gradient;
addGrdientFill(this[0], params.gradient, svg); addGrdientFill(this[0], params.gradient, this.svg);
} }
} }
return this; return this;
......
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