Import Tycho weave client

This commit is contained in:
wolfbeast 2018-10-06 06:57:51 +02:00 committed by Roy Tam
commit c53787dfdb
183 changed files with 7272 additions and 16759 deletions

View file

@ -11,7 +11,7 @@ this.EXPORTED_SYMBOLS = [
"RotaryTracker",
];
var {utils: Cu} = Components;
const {utils: Cu} = Components;
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/record.js");
@ -32,8 +32,8 @@ RotaryRecord.prototype = {
};
Utils.deferGetSet(RotaryRecord, "cleartext", ["denomination"]);
this.RotaryStore = function RotaryStore(name, engine) {
Store.call(this, name, engine);
this.RotaryStore = function RotaryStore(engine) {
Store.call(this, "Rotary", engine);
this.items = {};
}
RotaryStore.prototype = {
@ -88,8 +88,8 @@ RotaryStore.prototype = {
}
};
this.RotaryTracker = function RotaryTracker(name, engine) {
Tracker.call(this, name, engine);
this.RotaryTracker = function RotaryTracker(engine) {
Tracker.call(this, "Rotary", engine);
}
RotaryTracker.prototype = {
__proto__: Tracker.prototype
@ -115,7 +115,7 @@ RotaryEngine.prototype = {
return "DUPE_LOCAL";
}
for (let [id, value] of Object.entries(this._store.items)) {
for (let [id, value] in Iterator(this._store.items)) {
if (item.denomination == value) {
return id;
}