defunkt/jquery-pjax — comment on commit b1e9880450aae884d38c0065cc46b8dbcc6ad755
File:  line 0
By josh:

``` js
$(document).on("pjax:end", function(event) {
$(event.relatedTarget).css({backgroundColor: "none"})
})
```

`$.pjax({target: element})` will set `event.relatedTarget`. Its automatically set if you use `$.fn.pjax`.