From 7b01a1bd5cc801a41edd0730ff6c5317873ca42f Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 3 Sep 2013 17:10:29 -0400 Subject: [PATCH] Simplify code to remove entirely references to watch_pref(), since it does not appear to be necessary. --- conkerorrc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/conkerorrc b/conkerorrc index 7611999..66daa8b 100644 --- a/conkerorrc +++ b/conkerorrc @@ -51,23 +51,14 @@ hints_ambiguous_auto_exit_delay = 2000; // The below first creates a mode_line_hook to always display in the modeline if // Javascript is enabled. -require("pref"); var global_update_mode_line_for_javascript; -var global_watch_mode_line_for_javascript; +require("pref"); function javascript_status_widget (window) { this.class_name = "javascript-status-widget"; text_widget.call(this, window); var obj = this; - this.do_update = function () { - obj.update(); - watch_pref("javascript.enabled", obj.do_update); - } - global_update_mode_line_for_javascript = - function () { obj.do_update();}; - global_watch_mode_line_for_javascript = - function () { watch_pref("javascript.enabled", obj.do_update);}; - global_watch_mode_line_for_javascript(); + global_update_mode_line_for_javascript = function () { obj.update();}; } javascript_status_widget.prototype = { constructor: javascript_status_widget,