Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
NinjaCoder
Posts: 27
Registered: ‎07-24-2009

Bug introduced in BlackBerry JDE 5.0 Beta 5

So I have been watching my site with each new Beta Release of the JDE 5.0

 

My site was working with the 4th Beta but now the 5th beta came out today and I noticed I have a JS error now...

 

This has an error: 

new function()
{
    var a = function()
    {
        if(true) 
        {
            function b()
            {
            };
            setTimeout(b,0);
        }
    }
}

 I can fix it by changing it to this:

new function()
{
    var a = function()
    {
        if(true) 
        {
            setTimeout(b,0);
            function b()
            {
            };
        }
    }
}

 And this:

new function()
{
    var a = function()
    {
            setTimeout(b,0);
            function b()
            {
            };
    }
}

 and this:

new function()
{
    function a()
    {
        if(true) 
        {
            function b()
            {
            };
            setTimeout(b,0);
        }
    }
}

 

Anyone have any idea why this worked on black berry 5.0 beta 4 but not beta 5?


It works on all other browsers I test with (IE6-8/FF/Opera/Chrome/Safari/iPhone/Android/S60/etc)...

 

Please use plain text.