Skip to content

Commit 492f4bf

Browse files
aheuermannbenvinegar
authored andcommitted
Updating angular plugin to call original callback if exists (#658)
1 parent a912ddf commit 492f4bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/angular.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function angularPlugin(Raven, angular) {
3737
.provider('Raven', RavenProvider)
3838
.config(['$provide', ExceptionHandlerProvider]);
3939

40-
Raven.setDataCallback(function(data) {
40+
Raven.setDataCallback(function(data, original) {
4141
// We only care about mutating an exception
4242
var exception = data.exception;
4343
if (exception) {
@@ -53,6 +53,7 @@ function angularPlugin(Raven, angular) {
5353
data.extra.angularDocs = matches[3].substr(0, 250);
5454
}
5555
}
56+
original && original(data);
5657
});
5758
}
5859

0 commit comments

Comments
 (0)