Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HERERouter.prototype.getRoutes = function(options, onSuccessCallback) {
var onSuccess,
onSuccess = function (result) {
if (result.response.route) {
var routeLineGroup = new;
var routes = {
var routeLine = this.getRouteLine(route);
return {
route: route,
routeLine: routeLine
onSuccessCallback(routes, routeLineGroup);
} else {
onError = function (error) {
console.error('Oh no! There was some communication error!', error);
this.router.calculateRoute(options, onSuccess.bind(this), onError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.