FINAL
This commit is contained in:
parent
6654db2f80
commit
4f8b44e8dd
1 changed files with 3 additions and 2 deletions
|
|
@ -220,7 +220,8 @@
|
||||||
*/
|
*/
|
||||||
opts: null,
|
opts: null,
|
||||||
node: null,
|
node: null,
|
||||||
api_base_url: 'https://github.com',
|
api_base: 'https://github.com',
|
||||||
|
api_base_url: '',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Some people choose to do their templating in various ways, be it Mustache/etc. Some also choose to do the line-ending trick
|
* Some people choose to do their templating in various ways, be it Mustache/etc. Some also choose to do the line-ending trick
|
||||||
|
|
@ -287,7 +288,7 @@
|
||||||
* Luckily, all our JSON-P methods operate in a callback-based scenario! See why we did that? ;D
|
* Luckily, all our JSON-P methods operate in a callback-based scenario! See why we did that? ;D
|
||||||
*/
|
*/
|
||||||
show: function() {
|
show: function() {
|
||||||
this.api_base_url = this.api_base_url + '/' + this.opts.github_username + '/' + this.opts.github_repository + '/';
|
this.api_base_url = this.api_base '/' + this.opts.github_username + '/' + this.opts.github_repository + '/';
|
||||||
GitStatus.util.jsonp(this.api_base_url + 'network_meta', this._getRepoNetworkData, this);
|
GitStatus.util.jsonp(this.api_base_url + 'network_meta', this._getRepoNetworkData, this);
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue