rem: *          The name of the method on the Update Prompter that should be 
add: *          The name of the method on the Update Prompter that should be 
context:   registerNagTimer: function(timerID, timerInterval, methodName) {    // Remind the user to restart their browser in a little bit.    var tm =         Components.classes["@mozilla.org/updates/timer-manager;1"].        getService(Components.interfaces.nsIUpdateTimerManager);        /**     * An object implementing nsITimerCallback that uses the Update Prompt     * component to notify the user about some event relating to app update     * that they should take action on.     * @param   update     *          The nsIUpdate object in question     * @param   methodName     *          The name of the method on the Update Prompter that should be      *          called     * @constructor     */    function Callback(update, methodName) {      this._update = update;      this._methodName = methodName;      this._prompter =         Components.classes["@mozilla.org/updates/update-prompt;1"].        createInstance(Components.interfaces.nsIUpdatePrompt);          }    Callback.prototype = {      /**       * The Update we should nag about downloading       */      _update: null,            /**       * The Update prompter we can use to notify the user       */      _prompter: null,            /**       * The method on the update prompt that should be called       */      _methodName: "",            /**       * Called when the timer fires. Notifies the user about whichever event        * they need to be nagged about (e.g. update available, please restart,       * etc).       */      notify: function(timerCallback) {        if (methodName in this._prompter)           this._prompter[methodName](null, this._update);      }    }    tm.registerTimer(timerID, (new Callback(gUpdates.update, methodName)),                      timerInterval);  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/dd0789ea577a496e2622a164a469a9cb1bcf058d/updates.js/buggy/toolkit/mozapps/update/content/updates.js