--- a/services/sync/modules/base_records/wbo.js
+++ b/services/sync/modules/base_records/wbo.js
@@ -76,19 +76,35 @@ WBORecord.prototype = {
this.data.parentid = value;
},
get modified() this.data.modified,
set modified(value) {
this.data.modified = value;
},
+ get depth() this.data.depth,
+ set depth(value) {
+ this.data.depth = value;
+ },
+
+ get sortindex() this.data.sortindex,
+ set sortindex(value) {
+ this.data.sortindex = value;
+ },
+
get payload() this.data.payload,
set payload(value) {
this.data.payload = value;
+ },
+
+ toString: function WBORec_toString() {
+ return "{id: " + this.id + ", depth: " + this.depth +
+ ", sortindex: " + this.sortindex + ",\nmodified: " + this.modified +
+ ", payload: " + json.encode(this.cleartext) + "}";
}
};
// fixme: global, ugh
let json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
function WBOFilter() {}
WBOFilter.prototype = {