<commit_before>`import SampleItem from "animation-demo/models/sample_item"`

R = Ember.Route.extend
  model: (params) ->
    SampleItem.find(params.id)

  actions:
    back: -> @transitionTo 'parent-child-transition'

    willTransition: (transition) ->
      me = @routeName

      # if the destination still involves us, we don't need to do
      # anything. This covers the case where we're moving between our
      # own child routes, for example.
      if transition.params['parent-child-transition.detail']
        return true

      # clear the flag that slid us over
      @controllerFor('parent-child-transition').set('over', false)

      # if the destination is beyond even our parent, we don't need to
      # wait for the animation to run.
      unless transition.params['parent-child-transition']
        return true

      # otherwise, we need to wait for the animation to run before we
      # let our view get destroyed.
      if ((container = $(".parent-child-slider")).length > 0) and container.is('.over')
        transition.abort()
        container.one 'webkitTransitionEnd', ->
          Ember.run -> transition.retry()
      true

`export default R`<commit_msg>Simplified example based on proposed changes in https://github.com/tildeio/router.js/pull/89<commit_after>`import SampleItem from "animation-demo/models/sample_item"`

R = Ember.Route.extend
  model: (params) ->
    SampleItem.find(params.id)

  actions:
    back: -> @transitionTo 'parent-child-transition'

    willLeave: (transition, alsoLeaving) ->
      # clear the flag that slid us over
      @controllerFor('parent-child-transition').set('over', false)

      unless alsoLeaving('parent-child-transition')
        if ((container = $(".parent-child-slider")).length > 0) and container.is('.over')
          transition.abort()
          container.one 'webkitTransitionEnd', ->
            Ember.run -> transition.retry()
      true


`export default R`
{'fraction_non_alphanumeric': 0.11682964487905301, 'fraction_numerical': 0.002058672156459084, 'mean_word_length': 2.9272727272727272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928952', 'n_tokens_mistral': 542, 'n_tokens_neox': 525, 'n_words': 158}