plugins/raphael.export.js
authorAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:24:43 +0000 (12:24 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:24:43 +0000 (12:24 +0800)
plugins/raphael.export.js

index 48d8f36..24e14cc 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();