www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f9ffbd12dd467e4fb6f272737de0f97f9f88f3ba
parent fccc822063c0bbbf29e612554232f4c28aaee007
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 15 Aug 2006 21:31:08 +0000

Notifier.isEnabled()


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/notifier.js | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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;