plugins/raphael.export.js
[raphael] / plugins / raphael.export.js
index 48d8f36..bdd3b91 100644 (file)
                                reduce(
                                        node.attrs,
                                        function(initial, value, name) {
-                                               if ( name === 'path' ) name = 'd';
+                                               if ( name === 'path' ) {
+                            name = 'd';
+                        }
 
                                                initial[name] = (typeof(value) == 'undefined') ? '' : value.toString();
 
                                                return initial;
                                        },
-                                       {}
+                    {
+                            style:  node.attrs.style
+                    }
                                ),
                                node.matrix
                                );