Skip to content

Commit

Permalink
use jsonp for getting commits info from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Jan 3, 2012
1 parent df91c7d commit fd56a62
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/updates_from_gh.js
Expand Up @@ -3,9 +3,10 @@ jQuery(function($) {

// method definition
var getUpdates = function(callback) {
$.getJSON(
$.get(
'https://api.github.com/repos/'+REPO_NAME+'/commits',
callback
callback,
'jsonp'
);
};

Expand Down Expand Up @@ -34,7 +35,8 @@ jQuery(function($) {
, '</li>'
].join(''));

var showUpdates = function(data) {
var showUpdates = function(res) {
var data = res.data;
var $updateArea = $('ul.updates');
$updateArea.empty();
_.times(10, function(i) {
Expand Down

0 comments on commit fd56a62

Please sign in to comment.