old_contents: /* ***********************************************************************************************
  
      Unify Project
  
      Homepage: unify-project.org
      License: MIT + Apache (V2)
      Copyright: 2012, Sebastian Fastner, Mainz, Germany, http://unify-training.com
  
  *********************************************************************************************** */
  
  /**
   * @break {unify.ui.layout.queue.Manager}
   */
  
  (function() {
    
    var widgetQueue = [];
  
    core.Module("unify.ui.layout.queue.Visibility", {
      name : "visibility",
      
      add : function(widget) {
        widgetQueue.push(widget);
        unify.ui.layout.queue.Manager.run(unify.ui.layout.queue.Visibility.name);
      },
      
      flush : function() {
        console.log("VISIBILITY: ", widgetQueue.length, widgetQueue);
        
        for (var i=0,ii=widgetQueue.length; i<ii; i++) {
          var widget = widgetQueue[i];
          widget.checkAppearanceNeeds();
        }
      }
    });
  
  })();
new_contents: /* ***********************************************************************************************
  
      Unify Project
  
      Homepage: unify-project.org
      License: MIT + Apache (V2)
      Copyright: 2012, Sebastian Fastner, Mainz, Germany, http://unify-training.com
  
  *********************************************************************************************** */
  
  /**
   * @break {unify.ui.layout.queue.Manager}
   */
  
  (function() {
    
    var widgetQueue = [];
  
    core.Module("unify.ui.layout.queue.Visibility", {
      name : "visibility",
      
      add : function(widget) {
        widgetQueue.push(widget);
        unify.ui.layout.queue.Manager.run(unify.ui.layout.queue.Visibility.name);
      },
      
      flush : function() {
        for (var i=0,ii=widgetQueue.length; i<ii; i++) {
          var children = widgetQueue[i].getLayoutChildren();
          widgetQueue = widgetQueue.concat(children);
        }
        
        for (i=0,ii=widgetQueue.length; i<ii; i++) {
          widgetQueue[i].checkAppearanceNeeds();
        }
      }
    });
  
  })();
subject: Add children handling to visibility queue