Skip to content

Commit 8700b43

Browse files
committed
fix api
1 parent ccf923d commit 8700b43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jquery.github.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
function GithubRepo( repo ) {
44
this.description = repo.description;
5-
this.forks = repo.forks;
5+
this.forks = repo.forks_count;
66
this.name = repo.name;
77
this.open_issues = repo.open_issues;
88
this.pushed_at = repo.pushed_at;
99
this.url = repo.url;
10-
this.watchers = repo.watchers;
10+
this.stargazers = repo.stargazers_count;
1111
}
1212

1313
// Parses HTML template
@@ -22,7 +22,7 @@ GithubRepo.prototype.toHTML = function () {
2222
"<a href='" + this.url + "'>" + this.name + "</a>" +
2323
"</h3>" +
2424
"<div class='github-stats'>" +
25-
"<a class='repo-stars' title='Stars' data-icon='7' href='" + this.url + "/watchers'>" + this.watchers + "</a>" +
25+
"<a class='repo-stars' title='Stars' data-icon='7' href='" + this.url + "/stargazers'>" + this.stargazers + "</a>" +
2626
"<a class='repo-forks' title='Forks' data-icon='f' href='" + this.url + "/network'>" + this.forks + "</a>" +
2727
"<a class='repo-issues' title='Issues' data-icon='i' href='" + this.url + "/issues'>" + this.open_issues + "</a>" +
2828
"</div>" +

0 commit comments

Comments
 (0)