From 37eea50883f8228b5bf938cb842b6cadc23dad55 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 22 Oct 2014 12:05:26 +0800 Subject: [PATCH] raphael.js --- raphael.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/raphael.js b/raphael.js index a8363aa..79dd27d 100644 --- a/raphael.js +++ b/raphael.js @@ -4179,11 +4179,13 @@ window.Raphael.svg && function (R) { for (var key in params) { eve("attr." + key + "." + this.id, this, params[key]); } - for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) { - var par = this.paper.customAttributes[key].apply(this, [].concat(params[key])); - this.attrs[key] = params[key]; - for (var subkey in par) if (par[has](subkey)) { - params[subkey] = par[subkey]; + for (key in this.paper.customAttributes) { + if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], "function")) { + var par = this.paper.customAttributes[key].apply(this, [].concat(params[key])); + this.attrs[key] = params[key]; + for (var subkey in par) if (par[has](subkey)) { + params[subkey] = par[subkey]; + } } } setFillAndStroke(this, params); @@ -4606,6 +4608,7 @@ window.Raphael.vml && function (R) { stroke[se + "arrowwidth"] = h; }, setFillAndStroke = function (o, params) { + Roo.log( ['setFillAndStroke' , o, params]); // o.paper.canvas.style.display = "none"; o.attrs = o.attrs || {}; var node = o.node, -- 2.39.2