     override protected function commitProperties():void
     {
         var i:int;
-		var cursor:IViewCursor;
-		        
+        var cursor:IViewCursor;
+                
         if (showRootChanged)
         {
             if (!_hasRoot)

                                                  false,
                                                  EventPriority.DEFAULT_HANDLER, true);
                                        
				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++;
				    } 
				}
            }
        }
        

                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++;
                    } 
                }
            }
        }
        
