mroderick/PubSubJS — Issue #2: Try-Catch block
Author: alistairjcbrown
Created: 2011-12-06 17:52:55+00:00
State: open

The [try-catch block on line 82](https://github.com/mroderick/PubSubJS/blob/master/pubsub.js#L82) makes it very difficult to determine where errors have occurred as the error stack shows PubSub as the source of the exception.

```javascript
try {
subscribers[i].func( message, data );
} catch( e ){
setTimeout( throwException(e), 0);
}
```

Is there a reason why this is in place? Otherwise I would remove it to provide better debugging data to those developing.

Thanks,
Alistair