             {
                 selectedIndex = 0;
                 
-				var cursor:IViewCursor = dataProvider.createCursor()
-				cursor.seek(CursorBookmark.FIRST, 0);
+                var cursor:IViewCursor = dataProvider.createCursor()
+                cursor.seek(CursorBookmark.FIRST, 0);
 
                 var item:* = cursor.current;
                 

        // Change label/icon if selectedIndex is changed programatically.
        if (popUpMenu.selectedIndex >= 0)
        {
			var cursor:IViewCursor = dataProvider.createCursor();
			cursor.seek(CursorBookmark.FIRST, selectedIndex);

            selectedIndex = popUpMenu.selectedIndex;
            if (labelSet)

            menuEvent.menu = popUpMenu;
            menuEvent.menu.selectedIndex = selectedIndex;

            var cursor:IViewCursor = dataProvider.createCursor();
            cursor.seek(CursorBookmark.FIRST, selectedIndex);

            menuEvent.item =  cursor.current
            menuEvent.itemRenderer = itemRenderer;
