Mercurial > MadButterfly
changeset 1389:18494028f5bc
Fix the forward reference issue
author | wycc |
---|---|
date | Fri, 25 Mar 2011 03:56:07 +0800 |
parents | 669f79a4ecaf |
children | e6d826db527c |
files | nodejs/svg.js |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/svg.js Fri Mar 25 03:54:45 2011 +0800 +++ b/nodejs/svg.js Fri Mar 25 03:56:07 2011 +0800 @@ -32,9 +32,8 @@ return [r, g, b]; } -exports.loadSVG=loadSVG; -function loadSVG(mb_rt, root, filename) { +exports.prototype.loadSVG = function (mb_rt, root, filename) { this.pgstack=[]; if (filename) this.load(mb_rt,root,filename);