diff storage.js @ 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 c2954a9e5665
children 2bcadb0531f4
line wrap: on
line diff
--- a/storage.js
+++ b/storage.js
@@ -542,6 +542,10 @@ storage.load = function(file) {
 	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() {