                                                   false,
                                                   EventPriority.DEFAULT_HANDLER, true);
                                         
-				if (tmpCollection.length > 0)
-				{
+                if (tmpCollection.length > 0)
+                {
                     cursor = tmpCollection.createCursor();
-				    i= 0;
-				    while (!cursor.afterLast)
-				    {
-					    try
-					    {
-					        insertMenuBarItem(i, cursor.current);
-					    }
-					    catch(e:ItemPendingError)
-					    {
-					      //we probably dont need to actively recover from here
-					    }
-					      	
-					    cursor.moveNext();
-					    i++;
-				    } 
-				}
+                    i= 0;
+                    while (!cursor.afterLast)
+                    {
+                        try
+                        {
+                            insertMenuBarItem(i, cursor.current);
+                        }
+                        catch(e:ItemPendingError)
+                        {
+                          //we probably dont need to actively recover from here
+                        }
+                            
+                        cursor.moveNext();
+                        i++;
+                    } 
+                }
             }
         }
         

                if (!tmpCollection)
                    tmpCollection = _rootModel;
                
				if (tmpCollection.length > 0)
				{
				    cursor = tmpCollection.createCursor();
				    i= 0;
				    while (!cursor.afterLast)
				    {
				      try
				      {
				          insertMenuBarItem(i, cursor.current);
				      }
				      catch(e:ItemPendingError)
				      {
				          //we probably dont need to actively recover from here
				      }
				      	
				      cursor.moveNext();
				      i++;
				    } 
				}
            }
        }
        

[Style(name="backgroundSkin", type="Class", inherit="no")]

/**
 *  The default skin for a MenuBar item.
 * 
 *  @default mx.skins.halo.ActivatorSkin 
 *  
