Bug 953919 - Stop the reconnection timer when deleting an account, r=florian
This commit is contained in:
Родитель
db1d1a75e2
Коммит
8a6e117895
im/content
|
@ -238,6 +238,18 @@
|
|||
</body>
|
||||
</method>
|
||||
|
||||
<method name="destroy">
|
||||
<body>
|
||||
<![CDATA[
|
||||
// If we have a reconnect timer, stop it:
|
||||
// it will throw errors otherwise (see bug 480).
|
||||
// clearInterval is harmless if the timer doesn't exist.
|
||||
clearInterval(this.reconnectUpdateInterval);
|
||||
delete this.reconnectUpdateInterval;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<property name="autoLogin">
|
||||
<getter>
|
||||
<![CDATA[
|
||||
|
|
|
@ -165,6 +165,7 @@ var gAccountManager = {
|
|||
}
|
||||
else if (aTopic == "account-removed") {
|
||||
var elt = document.getElementById(aObject.id);
|
||||
elt.destroy();
|
||||
if (!elt.selected) {
|
||||
this.accountList.removeChild(elt);
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче