Permalink
Browse files

Used a real jquery selector

  • Loading branch information...
1 parent c6218b2 commit ef19cb830bce240cf53f72f9bce9dab6afa81276 @benschwarz committed Jan 7, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −5 public/docs/js/tracking.js
@@ -1,8 +1,5 @@
$(function() {
- var as = $("a[href^='http']");
- for(var i=0; i < as.length; i++) {
- $(as[i]).click(function() {
+ $("a[href^='http']").click(function() {
pageTracker._trackPageview('/outgoing/' + $(this).attr("href").replace('http://', ''));
- });
- }
+ });
});

0 comments on commit ef19cb8

Please sign in to comment.