Mercurial > psgxs
changeset 5:d8a98540d749
Reimport nodes methods when loading from file.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 29 Jun 2010 23:29:29 +0200 |
| parents | 4c93e76fa371 |
| children | 2bcadb0531f4 |
| files | storage.js |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/storage.js Tue Jun 29 13:38:07 2010 +0200 +++ b/storage.js Tue Jun 29 23:29:29 2010 +0200 @@ -542,6 +542,10 @@ var data = fs.readFileSync(file); var obj = eval('('+data+')'); list = endParsing(obj); + + for (var i in list) + for (var j in Node.prototype) + list[i][j] = Node.prototype[j]; } storage.debug = function() {
