From c807b12b37eb7ac38c9bd27f21bda5a06d5610af Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 2 Mar 2013 08:43:09 +0200 Subject: [PATCH] github.js: simplify code --- htdocs/site/js/github.js | 11 +++-------- htdocs/site/js/pack.js | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/htdocs/site/js/github.js b/htdocs/site/js/github.js index 17161bc3f..be7a1a478 100644 --- a/htdocs/site/js/github.js +++ b/htdocs/site/js/github.js @@ -5,19 +5,14 @@ jQuery.fn.listCommits = function(username, repository, branch) { var target = this; $.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) { - var commits = response.data; - - var list = $('