Changeset 774 for branches/ray/modules


Ignore:
Timestamp:
03/13/07 12:03:09 (13 years ago)
Author:
ray
Message:

updated branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ray/modules/Dialogs/inline-dialog.js

    r762 r774  
    5858    document.body.appendChild(backG); 
    5959    Xinha.Dialog.background[this.layer].push(backG); 
    60    
     60     
    6161    backG = document.createElement("div"); 
    6262    with (backG.style) 
     
    7171    document.body.appendChild(backG); 
    7272    Xinha.Dialog.background[this.layer].push(backG); 
     73    backG = null; 
     74    Xinha.freeLater(Xinha.Dialog.background[this.layer]); 
    7375  } 
    7476  var rootElem = document.createElement('div'); 
     
    157159  but.onmouseup = function() { this.className = "closeButton"; dialog.hide(); return false;}; 
    158160  titleBar.appendChild(but); 
    159    
     161 
    160162  var butX = document.createElement('span'); 
     163  butX.className = 'innerX'; 
    161164  butX.style.position = 'relative'; 
    162165  butX.style.top = '-3px'; 
     
    164167  butX.appendChild(document.createTextNode('\u00D7')); 
    165168  but.appendChild(butX); 
    166    
     169  butX = null; 
     170  but = null; 
    167171  var icon = document.createElement('img'); 
     172  icon.className = 'icon'; 
    168173  icon.src = _editor_url + 'images/xinha-small-icon.gif'; 
    169174  icon.style.position = 'absolute'; 
     
    172177  titleBar.style.paddingLeft = '30px'; 
    173178  titleBar.appendChild(icon); 
    174     
     179  icon = null; 
     180   
    175181  var all = rootElem.getElementsByTagName("*"); 
    176182 
     
    199205  resizeHandle.onmousedown = function(ev) { dialog._resizeStart(ev); }; 
    200206  rootElem.appendChild(resizeHandle); 
     207  resizeHandle = null; 
    201208  this.rootElem = rootElem; 
    202209  // for caching size & position after dragging & resizing 
    203210  this.size = {}; 
     211  titleBar = null; 
     212  rootElem = null; 
     213  Xinha.freeLater(this,'rootElem'); 
    204214}; 
    205215 
Note: See TracChangeset for help on using the changeset viewer.