diff --git a/dist/jquery.github.js b/dist/jquery.github.js index 220967d..adfb1f7 100644 --- a/dist/jquery.github.js +++ b/dist/jquery.github.js @@ -102,24 +102,11 @@ Github.prototype.displayIcons = function () { $iconStars = $( ".repo-stars" ); $iconForks = $( ".repo-forks" ); $iconIssues = $( ".repo-issues" ); + var options = this.options; - if ( this.options.iconStars ) { - $iconStars.css( "display", "inline-block" ); - } else { - $iconStars.css( "display", "none" ); - } - - if ( this.options.iconForks ) { - $iconForks.css( "display", "inline-block" ); - } else { - $iconForks.css( "display", "none" ); - } - - if ( this.options.iconIssues ) { - $iconIssues.css( "display", "inline-block" ); - } else { - $iconIssues.css( "display", "none" ); - } + $iconStars.css( "display", options.iconStars ? "inline-block" : "none" ); + $iconForks.css( "display", options.iconForks ? "inline-block" : "none" ); + $iconIssues.css( "display", options.iconIssues ? "inline-block" : none ); }; // Request repositories from Github