mtrpcic/pathjs — pull request #26 by dandean (2012-05-01 23:21:59+00:00)
Title: Support multiple actions per route

Hi Mike,

I'd like to get your thoughts on this. In my application it's necessary for independent modules to map all of their own routes so they can each act independently. This patch enables this so that each call to `Path.map` pushes the handler onto an action stack, rather than overwriting it.

```js

Path.map('/awesome').to(function() {
console.log('this is awesome');
});

Path.map('/awesome').to(function() {
console.log('this is ALSO awesome');
});

Path.history.navigate({}, '', '/awesome');
// this is awesome
// this is ALSO awesome
```

Before this patch, only the last callback would have been executed.