unify / unify

Unify Project
http://www.unifyjs.com
Other
152 stars 16 forks source link

when navigating to the same view, don't create another path entry (implicit rel=same) #85

Closed dominikg closed 12 years ago

dominikg commented 12 years ago

Viewmanagers don't allow navigating to the view they are already showing (they throw an error if you do). If you implement a view, that contains MNavigatables with goto to open a new view layer and a user double taps on such an MNavigatable, the first tap navigates the viewmanager to the target view and the second tries to do it again, causing an error (parent view class could not be identical to current view class)

to prevent this from happening (and allow for the case that a navigation action only changes a param or a segment but not the view), i changed MNavigatable to treat navigation attempts to the same view like rel=same was set.

fastner commented 12 years ago

It's in now.