dmachi / dojox_application

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

beforeDeactivate and afterDeactivate can be called for a view on the initial display without ever calling beforeActivate and afterActivate #205

Closed edchat closed 11 years ago

edchat commented 11 years ago

beforeDeactivate and afterDeactivate can be called for a view on the initial display without ever calling beforeActivate and afterActivate. This is happening because if a transition is done for a view where the current view is the same as the next view (which means there is not really a transition) we will still call beforeDeactivate and afterDeactivate and then call beforeActivate and afterActivate so that the view can be updated with data or parameters etc. But beforeDeactivate and afterDeactivate should not be called if the view is not currently active

edchat commented 11 years ago

I missed a case where beforeDeactivate can be called when the view is not active.

edchat commented 11 years ago

I have opened #207 to work on the other problems with before/after Activate/Deactivate. So I am going to close this one again.