Skip to content

Commit 9009062

Browse files
committed
Change from multiple line comments to single line comments zenorocha#17
1 parent 8faad8f commit 9009062

File tree

1 file changed

+10
-40
lines changed

1 file changed

+10
-40
lines changed

src/jquery.github.js

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
self.init();
2121
}
2222

23-
/**
24-
* Initializer
25-
*
26-
*/
23+
// Initializer
2724
Plugin.prototype.init = function () {
2825
var self = this,
2926
cached = self.getCache();
@@ -36,21 +33,15 @@
3633
}
3734
};
3835

39-
/**
40-
* Apply results to HTML template
41-
*
42-
*/
36+
// Apply results to HTML template
4337
Plugin.prototype.applyTemplate = function (repo) {
4438
var self = this,
4539
$widget = self.parseTemplate(repo);
4640

4741
$widget.appendTo(self.$container);
4842
};
4943

50-
/**
51-
* Stores repostories in sessionStorage if available
52-
*
53-
*/
44+
// Stores repostories in sessionStorage if available
5445
Plugin.prototype.cacheResults = function (result_data) {
5546
var self = this;
5647

@@ -60,10 +51,7 @@
6051
}
6152
};
6253

63-
/**
64-
* Grab cached results
65-
*
66-
*/
54+
// Grab cached results
6755
Plugin.prototype.getCache = function () {
6856
var self = this;
6957

@@ -75,53 +63,38 @@
7563
}
7664
};
7765

78-
/**
79-
* Handle Errors requests
80-
*
81-
*/
66+
// Handle Errors requests
8267
Plugin.prototype.handlerErrorRequests = function (result_data) {
8368
var self = this;
8469

8570
console.warn(result_data.message);
8671
return;
8772
};
8873

89-
/**
90-
* Handle Successful request
91-
*
92-
*/
74+
// Handle Successful request
9375
Plugin.prototype.handlerSuccessfulRequest = function (result_data) {
9476
var self = this;
9577

9678
self.applyTemplate(result_data);
9779
self.cacheResults(result_data);
9880
};
9981

100-
/**
101-
* Parses Pushed date with date format
102-
*
103-
*/
82+
// Parses Pushed date with date format
10483
Plugin.prototype.parsePushedDate = function (pushed_at) {
10584
var self = this,
10685
date = new Date(pushed_at);
10786

10887
return date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear();
10988
};
11089

111-
/**
112-
* Parses repository URL to be friendly
113-
*
114-
*/
90+
// Parses repository URL to be friendly
11591
Plugin.prototype.parseRepositoryURL = function (url) {
11692
var self = this;
11793

11894
return url.replace('api.','').replace('repos/','');
11995
};
12096

121-
/**
122-
* Parses HTML template
123-
*
124-
*/
97+
// Parses HTML template
12598
Plugin.prototype.parseTemplate = function (repo) {
12699
var self = this,
127100
pushed_at = self.parsePushedDate(repo.pushed_at),
@@ -149,10 +122,7 @@
149122
'));
150123
};
151124

152-
/**
153-
* Request repositories from Github
154-
*
155-
*/
125+
// Request repositories from Github
156126
Plugin.prototype.requestData = function (repo) {
157127
var self = this;
158128

0 commit comments

Comments
 (0)