-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE "ember-routing-transitioning-classes”] #9919
Conversation
👍 |
f8c610d
to
ae6d319
Compare
Twitter-esque example: http://emberjs.jsbin.com/cageva/4/edit?html,css,js,output |
Disables eager URL updates during slow transitions in favor of new CSS classes added to `link-to`s (in addition to `active` class): - `transitioning-in`: link-to is not currently active, but will be when the current underway (slow) transition completes. - `transitioning-out`: link-to is currently active, but will no longer be active when the current underway (slow) transition completes.
ae6d319
to
9c56bc4
Compare
👍 |
[FEATURE "ember-routing-transitioning-classes”]
|
||
var $index = Ember.$('#index-link'), $about = Ember.$('#about-link'), $other = Ember.$('#other-link'); | ||
|
||
Ember.run($about, 'click'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The click
handler should already have a runloop inside it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything I can do to help GO this feature? |
@ef4 ? did you post to wrong issue? |
No. I'm seeing code that is still wrapped in this feature flag. Should it not be? |
For context: I am cleaning up link-to to be a normal component, so I'm dealing with the transitioning classes. |
It is enabled by default. Flags can be removed. |
Cool, will do. |
Disables eager URL updates during slow transitions in favor of new CSS classes
added to
link-to
s (in addition toactive
class):transitioning-in
: link-to is not currently active, but will bewhen the current underway (slow) transition completes.
transitioning-out
: link-to is currently active, but will no longerbe active when the current underway (slow) transition completes.
This reverts the feature we added some months ago to eagerly update the URL even when a transition takes a while to complete; we realized that certain bugs (e.g. #5210 and #4908) didn't really otherwise have a clean solution since the original feature was at odds with the URL behavior people have come to expect from browsers.