Permalink
Browse files

notes

  • Loading branch information...
1 parent a949388 commit 92d6c8ef3f472ea393802b31e039d3cfb0a6ac3c @chrisdew committed Feb 2, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/barricane-db.js
View
8 lib/barricane-db.js
@@ -147,9 +147,12 @@ DB.prototype.toJSON = function() {
return ret;
}
+// This method sets up the instances from their serialised form.
DB.prototype.fromJSON = function(json) {
for(var uuid in json) {
if (json.hasOwnProperty(uuid)) {
+ // FIXME create the object using it's constructor
+ // findout about modifying the constructors to automatically add a 'register' call.
this.instances[uuid] = json[uuid];
}
}
@@ -163,13 +166,18 @@ DB.prototype.fromJSON = function(json) {
// FIXME
// if it's a __ID__ or __DATE__
// substitute in the real link/date
+ //
}
}
}
}
}
}
+// This method amends the instances from the transaction log.
+DB.prototype.fromLog = function(log) {
+
+}
exports.DB = DB;

0 comments on commit 92d6c8e

Please sign in to comment.