Skip to content

Commit e70d175

Browse files
committed
Update jquery.github.js
1 parent 18dc9b8 commit e70d175

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

dist/jquery.github.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,11 @@ Github.prototype.displayIcons = function () {
102102
$iconStars = $( ".repo-stars" );
103103
$iconForks = $( ".repo-forks" );
104104
$iconIssues = $( ".repo-issues" );
105+
var options = this.options;
105106

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 );
123110
};
124111

125112
// Request repositories from Github

0 commit comments

Comments
 (0)