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
parent 4e453a3311
commit 073b9fa9a9

View File

@ -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);