Changeset a9399b


Ignore:
Timestamp:
May 16, 2008, 5:52:21 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
c97a03
Parents:
a00578
Message:

made NotificationDialog? resistent against missing Output Objects (if called to early)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_notificationBar.js

    ra00578 ra9399b  
    5454    init : function() {
    5555        vI_notificationBar.Obj_DebugBox = document.getElementById("vIDebugBox");
     56        if (!vI_notificationBar.Obj_DebugBox) return;
    5657        if (vI_notificationBar.Obj_DebugBox.getAttribute("upgrade")) return;
    5758        vI_notificationBar.Obj_vINotification = document.getElementById("vINotification");
     
    6465   
    6566    clear : function() {
     67        if (!vI_notificationBar.Obj_vINotification) return;
    6668        // workaround, seems that my usage of notificationbox doesn't display multiple lines
    6769        vI_notificationBar.Obj_vINotification.height = 0;
     
    141143   
    142144    setNote: function(note, prefstring) {
    143         if (vI_notificationBar.Obj_vINotification) vI_notificationBar.clear();
     145        vI_notificationBar.clear();
    144146        vI_notificationBar.addNote(note, prefstring);
    145147    },
     
    148150        vI_notificationBar.dump("** " + note + "\n");
    149151        if (!vI_notificationBar.preferences.getBoolPref(prefstring)) return;
    150         if (!vI_notificationBar.Obj_vINotification) vI_notificationBar.init(false);
     152        if (!vI_notificationBar.Obj_vINotification) vI_notificationBar.init();
     153        if (!vI_notificationBar.Obj_vINotification) return;
    151154        if (!vI_notificationBar.versionOk) return;
    152155        if (vI_notificationBar.timer) window.clearTimeout(vI_notificationBar.timer);
Note: See TracChangeset for help on using the changeset viewer.