raphael.js
authorAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:05:26 +0000 (12:05 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:05:26 +0000 (12:05 +0800)
raphael.js

index a8363aa..79dd27d 100644 (file)
@@ -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,