dmachi / dojox_application

Dojox Application Framework for mobile, tablets, and desktops
Other
27 stars 24 forks source link

There can be a problem when going back from an inner view where multiple views flash by. #142

Closed edchat closed 11 years ago

edchat commented 11 years ago

The problem can be seen with the layoutApp or the modelApp tests by bringing up the app, then select Repeat, then select an item (Details button), and hit then hit the Back button or the browser back button. If you go to a different page first the problem may not occur.

edchat commented 11 years ago

The problem seems to be caused by the use of _startView in the History controller. _startView is set to null after the first popState, that is why things work correctly if you go to a different page first.
It is not clear to me why _startView is needed, I have not found a case where things fail if _startView is set to null initially.