projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebff67
)
plugins/raphael.export.js
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Oct 2012 05:56:16 +0000
(13:56 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Oct 2012 05:56:16 +0000
(13:56 +0800)
plugins/raphael.export.js
patch
|
blob
|
history
diff --git
a/plugins/raphael.export.js
b/plugins/raphael.export.js
index
fc652da
..
573bede
100644
(file)
--- a/
plugins/raphael.export.js
+++ b/
plugins/raphael.export.js
@@
-231,7
+231,7
@@
for ( i in node.attrs ) {
var name = i;
-
+ var val = node.attrs[i].toString();
switch ( i ) {
case 'src':
name = 'xlink:href';
@@
-239,12
+239,13
@@
break;
case 'transform':
name = '';
-
break;
+
+
}
if ( name ) {
- attrs += ' ' + name + '="' + escapeXML(
node.attrs[i].toString()
) + '"';
+ attrs += ' ' + name + '="' + escapeXML(
val
) + '"';
}
}