Bug 1142045 - Fix onClearHistoryChanged reference. r=jaws, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 11 Mar 2015 23:58:04 +0000
changeset 257769 5ceefaf4b6bf34970d242a8713e9d732be404e4c
parent 257768 4a18090955c7571997fe5c0dd8896ae55df9af04
child 257770 ae81a10f22b654570c937461e116a262882dda72
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sledru
bugs1142045
milestone38.0a2
Bug 1142045 - Fix onClearHistoryChanged reference. r=jaws, a=sledru
browser/components/preferences/sanitize.js
--- a/browser/components/preferences/sanitize.js
+++ b/browser/components/preferences/sanitize.js
@@ -5,17 +5,17 @@
 
 let gSanitizeDialog = Object.freeze({
   init: function() {
     let customWidthElements = document.getElementsByAttribute("dialogWidth", "*");
     let isInSubdialog = document.documentElement.hasAttribute("subdialog");
     for (let element of customWidthElements) {
       element.style.width = element.getAttribute(isInSubdialog ? "subdialogWidth" : "dialogWidth");
     }
-    onClearHistoryChanged();
+    this.onClearHistoryChanged();
   },
 
   onClearHistoryChanged: function () {
     let downloadsPref = document.getElementById("privacy.clearOnShutdown.downloads");
     let historyPref = document.getElementById("privacy.clearOnShutdown.history");
     downloadsPref.value = historyPref.value;
   }
 });