projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c5ef6a
)
JSDOC/BuildDocs.js
author
Alan Knowles
<alan@akkbhome.com>
Wed, 21 Jul 2010 15:40:15 +0000
(23:40 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 21 Jul 2010 15:40:15 +0000
(23:40 +0800)
JSDOC/BuildDocs.js
patch
|
blob
|
history
diff --git
a/JSDOC/BuildDocs.js
b/JSDOC/BuildDocs.js
index
0e623d6
..
ee50d33
100644
(file)
--- a/
JSDOC/BuildDocs.js
+++ b/
JSDOC/BuildDocs.js
@@
-119,7
+119,7
@@
BuildDocs = {
//print(cacheFile);
// disabled at present!@!!
//print(cacheFile);
// disabled at present!@!!
- if (
false &&
cacheFile && File.exists(cacheFile)) {
+ if (cacheFile && File.exists(cacheFile)) {
// check filetime?
var c_mt = File.mtime(cacheFile);
// check filetime?
var c_mt = File.mtime(cacheFile);
@@
-131,7
+131,20
@@
BuildDocs = {
if (c_mt > o_mt) { // cached time > original time!
// use the cached mtimes..
if (c_mt > o_mt) { // cached time > original time!
// use the cached mtimes..
- var syms = JSON.parse(File.read(cacheFile));
+ var syms = JSON.parse(File.read(cacheFile), function(k, v) {
+ if (typeof(v) != 'object') {
+ return v;
+ }
+ if (typeof(v._object) == 'undefined') {
+ return v;
+ }
+ var cls = imports[v._object];
+ delete v._object;
+ var ret = new cls();
+ XObject.extend(ret, v);
+ return ret;
+
+ });
throw "Conversion of cache not done yet!";
throw "Conversion of cache not done yet!";