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
parent d588221cab
commit 450a3cd37a
2 changed files with 7 additions and 9 deletions

View File

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

View File

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