Skip to content

Commit

Permalink
[changed] Transition retry now uses replaceWith.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Harrison committed Sep 18, 2014
1 parent 467fc76 commit 3787179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/utils/Transition.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var mixInto = require('react/lib/mixInto');
var transitionTo = require('../actions/LocationActions').transitionTo;
var Redirect = require('./Redirect');
var replaceWith = require('../actions/LocationActions').replaceWith;

/**
* Encapsulates a transition to a given path.
Expand All @@ -26,7 +26,7 @@ mixInto(Transition, {
},

retry: function () {
transitionTo(this.path);
replaceWith(this.path);
}

});
Expand Down

0 comments on commit 3787179

Please sign in to comment.