You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/05/15 08:31:28 UTC

[GitHub] [royale-asjs] nihavend commented on issue #824: Can not change locale for menubar constructed via XMLList within declarations

nihavend commented on issue #824:
URL: https://github.com/apache/royale-asjs/issues/824#issuecomment-629106335


   You are right for asking because it does not have meaning here. And it also is not related with the bug.
   
   This is the original if you are interested in, I did not worked on converting because not necessary. 
   
   ```
   			public function applyFilters():void {
   
   				var roleInfo:String = ModelLocator.getInstance().currentUser.roleinfo;
   				
   				var tmpXmlList:XMLListCollection = new XMLListCollection();
   				tmpXmlList.source = menuDataXMLList;
   				
   				tmpXmlList = RoleFilters.deleteRoledMenuItems(tmpXmlList, roleInfo);
   				
   				menuDataXMLList = tmpXmlList.source.copy();
   				
   				menuBarData.source = menuDataXMLList;
   				
   				// trace("Refreshing menubar...");
   				menuBarData.refresh();
   				
   			}
   ```
   
   Does it have an affect on the bug @aharui ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org