Opened 10 years ago

Closed 10 years ago

#15040 closed defect (fixed) no longer tracks current view

Reported by: ben hockey Owned by: ykami
Priority: blocker Milestone: 1.8
Component: DojoX Mobile Version: 1.7.2
Keywords: Cc: Eric Durocher, cjolif
Blocked By: Blocking:

Description (last modified by ben hockey)

from #14602

In [27586/dojo]:

Refs #14602 !strict. To support nested views and split views, set a comma-separated list of visible view IDs to the hash value. The new 'viewRegistry' module provides a quick access to the existing views. The hash handling functions are factored out into the new 'bookmarklable' module.

this seems to remove some of the support for in _doTransition. it's hard to determine if this was intentional since in dojox/mobile/_compat.js there is still support for in _doTransition for browsers that are not webkit (

if is deprecated, is there an alternative way to do programmatic transitions? up until this point, the way it had been done was ... );

Change History (9)

comment:1 Changed 10 years ago by ben hockey

Milestone: tbd1.8
Priority: undecidedblocker

comment:2 Changed 10 years ago by ben hockey

Description: modified (diff)

comment:3 Changed 10 years ago by ben hockey

hmm... it looks like r27594 was partially responsible for this too.

comment:4 Changed 10 years ago by cjolif

Cc: Eric Durocher cjolif added

comment:5 Changed 10 years ago by ykami

In 1.7, for, there was a comment like

dm.currentView = _this; //TODO:1.8 reconsider this. currentView may not have a currently showing view when views are nested.

because it was unreliable. After experiencing various cases, it turned out that the idea of 'current view' didn't work. ( in _compat.js should have been removed.)

If you have a reference to one of your views, you should be able to get a reference to the currently showing view with View.getShowingView() method. It searches the sibling views for the currently visible view.

If your application is more complex, you may want to subscribe the "/dojox/mobile/afterTransitionIn" topic to keep the last shown view. Please see tests/test_transition-pubsub.html for examples.

comment:6 Changed 10 years ago by ykami

In [28385]:

Refs #15040 Removed assignment to, which was unreliable way of keeping the current view, to avoid confusion. !strict

comment:7 Changed 10 years ago by ykami

Did the comment above solve your problem?

comment:8 in reply to:  7 Changed 10 years ago by ben hockey

Replying to ykami:

Did the comment above solve your problem?

it confirms that the intention is to remove thanks. you can close this if you've got nothing else to do with it.

comment:9 Changed 10 years ago by ykami

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.