mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
Import Tycho weave client
This commit is contained in:
parent
e4ac0e17f8
commit
c53787dfdb
183 changed files with 7272 additions and 16759 deletions
|
|
@ -6,7 +6,7 @@ this.EXPORTED_SYMBOLS = ['Weave'];
|
|||
|
||||
this.Weave = {};
|
||||
Components.utils.import("resource://services-sync/constants.js", Weave);
|
||||
var lazies = {
|
||||
let lazies = {
|
||||
"jpakeclient.js": ["JPAKEClient", "SendCredentialsController"],
|
||||
"notifications.js": ["Notifications", "Notification", "NotificationButton"],
|
||||
"service.js": ["Service"],
|
||||
|
|
@ -15,14 +15,12 @@ var lazies = {
|
|||
};
|
||||
|
||||
function lazyImport(module, dest, props) {
|
||||
function getter(prop) {
|
||||
return function() {
|
||||
let ns = {};
|
||||
Components.utils.import(module, ns);
|
||||
delete dest[prop];
|
||||
return dest[prop] = ns[prop];
|
||||
};
|
||||
}
|
||||
function getter(prop) function() {
|
||||
let ns = {};
|
||||
Components.utils.import(module, ns);
|
||||
delete dest[prop];
|
||||
return dest[prop] = ns[prop];
|
||||
};
|
||||
props.forEach(function (prop) { dest.__defineGetter__(prop, getter(prop)); });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue