Changeset 15975


Ignore:
Timestamp:
09/09/10 21:42:52 (17 months ago)
Author:
sys
Message:

winPersist : suppr error log in console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Core/modules/scenariCore/utils/winPersist/winPersist.jsm

    r15748 r15975  
    387387                pWindow.moveTo(vX, vY); 
    388388        } 
    389         try{ 
    390                 //Réaffectation du focus sur la dernière fenêtre car resizeTo et moveto redonne le focus... 
    391                 winPersist.fFullData[this.fFullData.length-1].window.content.focus(); 
    392         }catch(e){} 
     389        if(winPersist.fFullData && winPersist.fFullData.length>0) { 
     390                try{ 
     391                        //Réaffectation du focus sur la dernière fenêtre car resizeTo et moveto redonne le focus... 
     392                        winPersist.fFullData[winPersist.fFullData.length-1].window.focus(); 
     393                }catch(e){} 
     394        } 
    393395         
    394396        //Le sizeMode est en setTimeout pour passer après l'affectation par l'@ persist. 
Note: See TracChangeset for help on using the changeset viewer.