Capture better stack traces

This commit is contained in:
John Firebaugh
2013-04-03 16:41:32 -07:00
parent ff3405ae02
commit 7e2485dd87
+1
View File
@@ -1227,6 +1227,7 @@ function d3_selection_on(type, listener, capture) {
function onAdd() {
var l = wrap(listener, d3_array(arguments));
if (typeof Raven !== 'undefined') l = Raven.wrap(l);
onRemove.call(this);
this.addEventListener(type, this[name] = l, l.$ = capture);
l._ = listener;