From 0a2211e2f605b3d2445f1a1eae85c69a0cc5c1ed Mon Sep 17 00:00:00 2001 From: John Foerch Date: Thu, 4 Feb 2016 14:31:07 -0500 Subject: [PATCH] modules/history.js: whitespace, style --- modules/history.js | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/modules/history.js b/modules/history.js index 1446728..73bdff9 100644 --- a/modules/history.js +++ b/modules/history.js @@ -96,26 +96,28 @@ function add_bookmark (url, title) { // http://mxr.mozilla.org/mozilla-central/source/browser/base/content/sanitize.js // for the Firefox implementation for clearing various history information. -function clear_form_history() { - var FormHistory = Components.utils.import("resource://gre/modules/FormHistory.jsm", null).FormHistory; +function clear_form_history () { + var FormHistory = Cu.import("resource://gre/modules/FormHistory.jsm", null).FormHistory; // This is asynchronous, but we don't care about waiting for it to finish. FormHistory.update( { op: "remove" } ); } -interactive("clear-form-history", "Permanently delete all form autocomplete history.", - function (I) { - clear_form_history(); - I.minibuffer.message("Form history cleared."); - }); +interactive("clear-form-history", + "Permanently delete all form autocomplete history.", + function (I) { + clear_form_history(); + I.minibuffer.message("Form history cleared."); + }); -function clear_history() { - var PlacesUtils = Components.utils.import("resource://gre/modules/PlacesUtils.jsm").PlacesUtils; +function clear_history () { + var PlacesUtils = Cu.import("resource://gre/modules/PlacesUtils.jsm").PlacesUtils; PlacesUtils.history.removeAllPages(); } -interactive("clear-history", "Permanently delete all location history.", - function (I) { - clear_history(); - I.minibuffer.message("Location history cleared."); - }); +interactive("clear-history", + "Permanently delete all location history.", + function (I) { + clear_history(); + I.minibuffer.message("Location history cleared."); + }); /** -- 2.11.4.GIT