Quick fix of gradient bug
This commit is contained in:
parent
cf76de4f23
commit
dfe115a910
File diff suppressed because one or more lines are too long
|
|
@ -1069,6 +1069,7 @@ var Raphael = (function (type) {
|
|||
ScaleY = 1,
|
||||
tMatrix = null;
|
||||
this[0] = node;
|
||||
this.svg = svg;
|
||||
this.attrs = this.attrs || {};
|
||||
this.transformations = []; // rotate, translate, scale, matrix
|
||||
this.rotate = function (deg) {
|
||||
|
|
@ -1214,7 +1215,7 @@ var Raphael = (function (type) {
|
|||
}
|
||||
if (params.gradient) {
|
||||
this.attrs.gradient = params.gradient;
|
||||
addGrdientFill(this[0], params.gradient, svg);
|
||||
addGrdientFill(this[0], params.gradient, this.svg);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue