Skip to content

Commit c85bc41

Browse files
committed
Update transitions example
1 parent 5ae09e8 commit c85bc41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/transitions/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ var Dashboard = React.createClass({
3131
var Form = React.createClass({
3232
mixins: [ Navigation, TransitionHook ],
3333

34-
routerWillLeave(nextState, router) {
34+
routerWillLeave(nextState, transition) {
3535
if (findDOMNode(this.refs.userInput).value !== '')
3636
if (!confirm('You have unsaved information, are you sure you want to leave this page?'))
37-
router.cancelTransition();
37+
transition.abort();
3838
},
3939

4040
handleSubmit(event) {

0 commit comments

Comments
 (0)