# HG changeset patch # User Emmanuel Gil Peyrot # Date 1277846969 -7200 # Node ID d8a98540d7492fae8e5b89e8fcd32bdc7259aa04 # Parent 4c93e76fa371757c50c5d82f9f7490f8befe57d1 Reimport nodes methods when loading from file. diff --git a/storage.js b/storage.js --- 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() {