Skip to content
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

Merged
merged 1 commit into from
Dec 19, 2014

Conversation

machty
Copy link
Contributor

@machty machty commented Dec 15, 2014

Disables eager URL updates during slow transitions in favor of new CSS classes
added to link-tos (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.

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.

@machty
Copy link
Contributor Author

machty commented Dec 15, 2014

Example JSBin

@rwjblue
Copy link
Member

rwjblue commented Dec 15, 2014

👍

@machty machty force-pushed the transitioning-classes branch 2 times, most recently from f8c610d to ae6d319 Compare December 15, 2014 02:39
@machty
Copy link
Contributor Author

machty commented Dec 15, 2014

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.
@machty machty force-pushed the transitioning-classes branch from ae6d319 to 9c56bc4 Compare December 19, 2014 15:29
@rwjblue
Copy link
Member

rwjblue commented Dec 19, 2014

👍

rwjblue added a commit that referenced this pull request Dec 19, 2014
[FEATURE "ember-routing-transitioning-classes”]
@rwjblue rwjblue merged commit ad675d5 into emberjs:master Dec 19, 2014
@rwjblue rwjblue deleted the transitioning-classes branch December 19, 2014 16:04

var $index = Ember.$('#index-link'), $about = Ember.$('#about-link'), $other = Ember.$('#other-link');

Ember.run($about, 'click');
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ef4
Copy link
Contributor

ef4 commented Aug 12, 2015

Anything I can do to help GO this feature?

@machty
Copy link
Contributor Author

machty commented Aug 12, 2015

@ef4 ? did you post to wrong issue?

@ef4
Copy link
Contributor

ef4 commented Aug 12, 2015

No. I'm seeing code that is still wrapped in this feature flag. Should it not be?

@ef4
Copy link
Contributor

ef4 commented Aug 12, 2015

For context: I am cleaning up link-to to be a normal component, so I'm dealing with the transitioning classes.

@rwjblue
Copy link
Member

rwjblue commented Aug 12, 2015

It is enabled by default. Flags can be removed.

@ef4
Copy link
Contributor

ef4 commented Aug 12, 2015

Cool, will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants