Mercurial > MadButterfly
comparison nodejs/svg.js @ 802:843f1b5548d7
Allow relative path
author | wycc |
---|---|
date | Wed, 01 Sep 2010 02:06:32 +0800 |
parents | ba6bb69ee419 |
children | 5723e5446b7c |
comparison
equal
deleted
inserted
replaced
801:f84ccf1f59ae | 802:843f1b5548d7 |
---|---|
544 if (ref.substr(0,7) == "file://") { | 544 if (ref.substr(0,7) == "file://") { |
545 ref = ref.substring(7); | 545 ref = ref.substring(7); |
546 } else if (ref.substr(0,5)=="file:") { | 546 } else if (ref.substr(0,5)=="file:") { |
547 ref = ref.substring(5); | 547 ref = ref.substring(5); |
548 } else { | 548 } else { |
549 return; | |
550 } | 549 } |
551 var w; | 550 var w; |
552 var h; | 551 var h; |
553 var x,y,nx,ny; | 552 var x,y,nx,ny; |
554 coord.center= new Object(); | 553 coord.center= new Object(); |