rem: { 
add:  {  
context: qx.ui.core.Widget.flushGlobalDisplayQueue = function(){  var vKey, vLazyQueue, vWidget, vFragment;  var vFastQueue = qx.ui.core.Widget._fastGlobalDisplayQueue;  var vLazyQueues = qx.ui.core.Widget._lazyGlobalDisplayQueues;  /* -----------------------------------------------      Flush display queues  ----------------------------------------------- */  // Work on fast queue  for (var i=0, l=vFastQueue.length; i<l; i++)  {    vWidget = vFastQueue[i];    vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());  }  // Work on lazy queues: Inline widgets  if (qx.OO.isAvailable("qx.ui.basic.Inline"))  {    for (vKey in vLazyQueues)    {      vLazyQueue = vLazyQueues[vKey];      for (var i=0; i<vLazyQueue.length; i++)      {        vWidget = vLazyQueue[i];        if (vWidget instanceof qx.ui.basic.Inline)        {          vWidget._beforeInsertDom();          try          {            document.getElementById(vWidget.getInlineNodeId()).appendChild(vWidget.getElement());          }          catch(ex)          {            vWidget.debug("Could not append to inline id: " + vWidget.getInlineNodeId(), ex);          }          vWidget._afterInsertDom();          vWidget._afterAppear();          // Remove inline widget from queue and fix iterator position          qx.lang.Array.remove(vLazyQueue, vWidget);          i--;          // Reset display queue flag          delete vWidget._isInGlobalDisplayQueue;        }      }    }  }  // Work on lazy queues: Other widgets  for (vKey in vLazyQueues)  {    vLazyQueue = vLazyQueues[vKey];    // Speed enhancement: Choose a fairly small arbitrary value for the number    // of elements that should be added to the parent individually.  If more    // than this number of elements is to be added to the parent, we'll create    // a document fragment, add the elements to the document fragment, and    // then add the whole fragment to the parent en mass (assuming that    // creation of a document fragment is supported by the browser).    if (document.createDocumentFragment && vLazyQueue.length >= 3)    {      // creating new document fragment      vFragment = document.createDocumentFragment();      // appending all widget elements to fragment      for (var i=0, l=vLazyQueue.length; i<l; i++)      {        vWidget = vLazyQueue[i];        vWidget._beforeInsertDom();        vFragment.appendChild(vWidget.getElement());      }      // append all fragment data at once to      // the already visible parent widget element      vLazyQueue[0].getParent()._getTargetNode().appendChild(vFragment);      for (var i=0, l=vLazyQueue.length; i<l; i++)      {        vWidget = vLazyQueue[i];        vWidget._afterInsertDom();      }    }    else    {      // appending all widget elements (including previously added children)      // to the already visible parent widget element      for (var i=0, l=vLazyQueue.length; i<l; i++)      {        vWidget = vLazyQueue[i];        vWidget._beforeInsertDom();        vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());        vWidget._afterInsertDom();      }    }  }  /* -----------------------------------------------      Cleanup and appear signals  ----------------------------------------------- */  // Only need to do this with the lazy queues  // because through the recursion from qx.ui.core.Parent  // all others get also informed.  for (vKey in vLazyQueues)  {    vLazyQueue = vLazyQueues[vKey];    for (var i=0, l=vLazyQueue.length; i<l; i++)    {      vWidget = vLazyQueue[i];      if (vWidget.getVisibility()) {        vWidget._afterAppear();      }      // Reset display queue flag      delete vWidget._isInGlobalDisplayQueue;    }    delete vLazyQueues[vKey];  }  // Reset display queue flag for widgets in fastQueue  for (var i=0, l=vFastQueue.length; i<l; i++) {    delete vFastQueue[i]._isInGlobalDisplayQueue;  }  // Remove fast queue entries  qx.lang.Array.removeAll(vFastQueue);}
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/32797ee18a2c92a797417cb1392f24fa90943b97/Widget.js/buggy/qooxdoo/frontend/framework/source/class/qx/ui/core/Widget.js