Mercurial > MadButterfly
comparison nodejs/svg.js @ 1389:18494028f5bc
Fix the forward reference issue
author | wycc |
---|---|
date | Fri, 25 Mar 2011 03:56:07 +0800 |
parents | 669f79a4ecaf |
children | e6d826db527c |
comparison
equal
deleted
inserted
replaced
1388:669f79a4ecaf | 1389:18494028f5bc |
---|---|
30 } | 30 } |
31 | 31 |
32 return [r, g, b]; | 32 return [r, g, b]; |
33 } | 33 } |
34 | 34 |
35 exports.loadSVG=loadSVG; | 35 |
36 | 36 exports.prototype.loadSVG = function (mb_rt, root, filename) { |
37 function loadSVG(mb_rt, root, filename) { | |
38 this.pgstack=[]; | 37 this.pgstack=[]; |
39 if (filename) | 38 if (filename) |
40 this.load(mb_rt,root,filename); | 39 this.load(mb_rt,root,filename); |
41 } | 40 } |
42 | 41 |