Bug 561638 - Weave Error in Trunk Nightly (Status Bar Icon Missing) [r=mconnor]

Remove the extra name from get/set declarations now that Spidermonkey doesn't want them.
This commit is contained in:
Edward Lee 2010-04-26 11:37:12 -07:00
Родитель 7dd144218f
Коммит 2a8342da17
2 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -81,7 +81,7 @@ function Identity(realm, username, password) {
this._password = password; this._password = password;
} }
Identity.prototype = { Identity.prototype = {
get password password() { get password() {
// Look up the password then cache it // Look up the password then cache it
if (this._password == null) if (this._password == null)
for each (let login in this._logins) for each (let login in this._logins)
@ -90,9 +90,7 @@ Identity.prototype = {
return this._password; return this._password;
}, },
set password password(value) { set password(value) this._password = value,
this._password = value;
},
persist: function persist() { persist: function persist() {
// Clean up any existing passwords unless it's what we're persisting // Clean up any existing passwords unless it's what we're persisting
@ -120,5 +118,5 @@ Identity.prototype = {
Svc.Login.addLogin(newLogin); Svc.Login.addLogin(newLogin);
}, },
get _logins _logins() Svc.Login.findLogins({}, PWDMGR_HOST, null, this.realm) get _logins() Svc.Login.findLogins({}, PWDMGR_HOST, null, this.realm)
}; };

Просмотреть файл

@ -126,11 +126,11 @@ WeaveSvc.prototype = {
this._updateCachedURLs(); this._updateCachedURLs();
}, },
get password password() ID.get("WeaveID").password, get password() ID.get("WeaveID").password,
set password password(value) ID.get("WeaveID").password = value, set password(value) ID.get("WeaveID").password = value,
get passphrase passphrase() ID.get("WeaveCryptoID").password, get passphrase() ID.get("WeaveCryptoID").password,
set passphrase passphrase(value) ID.get("WeaveCryptoID").password = value, set passphrase(value) ID.get("WeaveCryptoID").password = value,
get serverURL() Svc.Prefs.get("serverURL"), get serverURL() Svc.Prefs.get("serverURL"),
set serverURL(value) { set serverURL(value) {