Bug 1095017 - pass the element instead of the pane object to gSyncUtils.changeName, r=markh

This commit is contained in:
Gijs Kruitbosch 2015-03-04 14:54:47 +00:00
Родитель b471b4d718
Коммит 1c63117d45
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -154,8 +154,8 @@ let gSyncPane = {
if (this.selectedCount)
this.clearSelection();
});
setEventListener("syncComputerName", "change", function () {
gSyncUtils.changeName(this);
setEventListener("syncComputerName", "change", function (e) {
gSyncUtils.changeName(e.target);
});
setEventListener("unlinkDevice", "click", function () {
gSyncPane.startOver(true);
@ -203,8 +203,8 @@ let gSyncPane = {
setEventListener("rejectUnlinkFxaAccount", "click", function () {
gSyncPane.unlinkFirefoxAccount(true);
});
setEventListener("fxaSyncComputerName", "change", function () {
gSyncUtils.changeName(this);
setEventListener("fxaSyncComputerName", "change", function (e) {
gSyncUtils.changeName(e.target);
});
setEventListener("tosPP-small-ToS", "click", gSyncPane.openToS);
setEventListener("tosPP-small-PP", "click", gSyncPane.openPrivacyPolicy);