[jira] [Updated] (FLEX-33592) mx.controls.MenuBar#getMenuAt RangeError

2013-06-19 Thread Philip Mair (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philip Mair updated FLEX-33592:
---

Description: 
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:

public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}

  was:
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:
{code:xml}
public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}
{code}


 mx.controls.MenuBar#getMenuAt RangeError
 

 Key: FLEX-33592
 URL: https://issues.apache.org/jira/browse/FLEX-33592
 Project: Apache Flex
  Issue Type: Bug
  Components: mx: Menu Bar
Affects Versions: Apache Flex 4.9.0
Reporter: Philip Mair
   Original Estimate: 2h
  Remaining Estimate: 2h

 When changing MenuBar dataProvider within click on MenuBar-Item causes a 
 RangeError in getMenuAt if the index was greater then new amount of MenuBar 
 Items.
 I solved this with following workaround:
   public override function getMenuAt(index:int):Menu
   {
   var menu:Menu = null;
   
   try
   {
   menu = super.getMenuAt(index);
   }
   catch(e: Error)
   {
   
   }
   if(menu == null) //return a fake menu to avoid 
 TypeError's
   return new Menu();
   else
   return menu;
   }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-33592) mx.controls.MenuBar#getMenuAt RangeError

2013-06-19 Thread Philip Mair (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philip Mair updated FLEX-33592:
---

Description: 
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:
{code:xml}
public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}
{code}

  was:
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:

public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}


 mx.controls.MenuBar#getMenuAt RangeError
 

 Key: FLEX-33592
 URL: https://issues.apache.org/jira/browse/FLEX-33592
 Project: Apache Flex
  Issue Type: Bug
  Components: mx: Menu Bar
Affects Versions: Apache Flex 4.9.0
Reporter: Philip Mair
   Original Estimate: 2h
  Remaining Estimate: 2h

 When changing MenuBar dataProvider within click on MenuBar-Item causes a 
 RangeError in getMenuAt if the index was greater then new amount of MenuBar 
 Items.
 I solved this with following workaround:
 {code:xml}
   public override function getMenuAt(index:int):Menu
   {
   var menu:Menu = null;
   
   try
   {
   menu = super.getMenuAt(index);
   }
   catch(e: Error)
   {
   
   }
   if(menu == null) //return a fake menu to avoid 
 TypeError's
   return new Menu();
   else
   return menu;
   }
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-33592) mx.controls.MenuBar#getMenuAt RangeError

2013-06-19 Thread Philip Mair (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philip Mair updated FLEX-33592:
---

Description: 
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:

public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}


  was:
When changing MenuBar dataProvider within click on MenuBar-Item causes a 
RangeError in getMenuAt if the index was greater then new amount of MenuBar 
Items.

I solved this with following workaround:
{{
public override function getMenuAt(index:int):Menu
{
var menu:Menu = null;

try
{
menu = super.getMenuAt(index);
}
catch(e: Error)
{

}
if(menu == null) //return a fake menu to avoid 
TypeError's
return new Menu();
else
return menu;
}
}}


 mx.controls.MenuBar#getMenuAt RangeError
 

 Key: FLEX-33592
 URL: https://issues.apache.org/jira/browse/FLEX-33592
 Project: Apache Flex
  Issue Type: Bug
  Components: mx: Menu Bar
Affects Versions: Apache Flex 4.9.0
Reporter: Philip Mair
   Original Estimate: 2h
  Remaining Estimate: 2h

 When changing MenuBar dataProvider within click on MenuBar-Item causes a 
 RangeError in getMenuAt if the index was greater then new amount of MenuBar 
 Items.
 I solved this with following workaround:
   public override function getMenuAt(index:int):Menu
   {
   var menu:Menu = null;
   
   try
   {
   menu = super.getMenuAt(index);
   }
   catch(e: Error)
   {
   
   }
   if(menu == null) //return a fake menu to avoid 
 TypeError's
   return new Menu();
   else
   return menu;
   }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira