docs/assets/app.js
function runLeaveHooks(routes, prevState) {
  for (var i = 0, len = routes.length; i < len; ++i) {
    if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState);
  }
}
function runLeaveHooks(routes, prevState) {
  for (var i = 0, len = routes.length; i < len; ++i) {
    if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState);
  }
}
function runLeaveHooks ( routes , prevState ) { for ( var i = 0 , len = routes . length ; i < len ; ++ i ) { if ( routes [ i ] . onLeave ) routes [ i ] . onLeave . call ( routes [ i ] , prevState ) ; } }
Runs all onLeave hooks in the given array of routes in order.
Runs all onLeave hooks in the given array of routes in order .