File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -102,24 +102,11 @@ Github.prototype.displayIcons = function () {
102
102
$iconStars = $ ( ".repo-stars" ) ;
103
103
$iconForks = $ ( ".repo-forks" ) ;
104
104
$iconIssues = $ ( ".repo-issues" ) ;
105
+ var options = this . options ;
105
106
106
- if ( this . options . iconStars ) {
107
- $iconStars . css ( "display" , "inline-block" ) ;
108
- } else {
109
- $iconStars . css ( "display" , "none" ) ;
110
- }
111
-
112
- if ( this . options . iconForks ) {
113
- $iconForks . css ( "display" , "inline-block" ) ;
114
- } else {
115
- $iconForks . css ( "display" , "none" ) ;
116
- }
117
-
118
- if ( this . options . iconIssues ) {
119
- $iconIssues . css ( "display" , "inline-block" ) ;
120
- } else {
121
- $iconIssues . css ( "display" , "none" ) ;
122
- }
107
+ $iconStars . css ( "display" , options . iconStars ? "inline-block" : "none" ) ;
108
+ $iconForks . css ( "display" , options . iconForks ? "inline-block" : "none" ) ;
109
+ $iconIssues . css ( "display" , options . iconIssues ? "inline-block" : none ) ;
123
110
} ;
124
111
125
112
// Request repositories from Github
You can’t perform that action at this time.
0 commit comments