From f9ffbd12dd467e4fb6f272737de0f97f9f88f3ba Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 15 Aug 2006 21:31:08 +0000 Subject: [PATCH] Notifier.isEnabled() --- chrome/chromeFiles/content/scholar/xpcom/notifier.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js index cb5bb94a6..ee2f0e17b 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/notifier.js +++ b/chrome/chromeFiles/content/scholar/xpcom/notifier.js @@ -11,6 +11,7 @@ Scholar.Notifier = new function(){ this.trigger = trigger; this.disable = disable; this.enable = enable; + this.isEnabled = isEnabled; function registerColumnTree(ref){ return _register('columnTree', ref); @@ -77,6 +78,11 @@ Scholar.Notifier = new function(){ } + function isEnabled(){ + return !_disabled; + } + + function _register(type, ref){ var len = 2; var tries = 10;