Hello
I am having a problem, with something I don't understand why:
I have a timer that will start(timer will still run when you are on other view), I wan't the timer handler to only do something when I am on the current view:
if (navigator.activeView.clas
sName == 'TestView'){
//function
}
It gives an null error when I change the view and the timer handler fires:
Cannot access a property or method of a null object reference.
Yes, I have a trace function in the init function on the other views that I change to and it gives a valid name back in the 'console', why does my if function give an null error when it is not == with the current view class name, I also now made a trace before the if statement, it seems that the timers current view is null on other views but not on the view that the timer started on?
Here is a demo project showing you the problem:
http://www.megafileupload.com/en/file/418802/TestCurr-fxp.html
callLater( function()
{
if (navigator.activeView.clas
{
//function
}
});