# HG changeset patch # User wycc # Date 1300996567 -28800 # Node ID 18494028f5bc8ce40a22b035889b277e79af8592 # Parent 669f79a4ecafaa466a729891f36417b87ffae9fa Fix the forward reference issue diff -r 669f79a4ecaf -r 18494028f5bc nodejs/svg.js --- 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);