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
+++ 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() {