From 7c5834ebc3423f8685fb86b73fababde63bda4d4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 29 Jun 2010 17:41:57 +0800 Subject: [PATCH] JSDOC/BuildDocs.js --- JSDOC/BuildDocs.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index 0b4e8c1..ff2a9a5 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -231,7 +231,9 @@ BuildDocs = { print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt); // dump out a - File.write(Options.target+"/json/", symbol.alias+'.json' , this.jsonRender(symbol)); + + this.publishJSON(Options.target+"/json/", symbol.alias+'.json', symbol) + } @@ -273,7 +275,7 @@ BuildDocs = { fileindexTemplate = filesIndex = files = null; } - publishJSON = function(data) + publishJSON = function(file, data) { // what we need to output to be usefull... // a) props.. @@ -325,7 +327,7 @@ BuildDocs = { props : props, events: events }; - return JSON.stringify(ret, null, 2 ); + File.write(file, JSON.stringify(ret, null, 2 )); // b) methods -- 2.39.2