Skip to content

Commit 3c8c8c0

Browse files
committed
Move displayIcons to be called inside applyTemplate
1 parent 3b135ab commit 3c8c8c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.github.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function Github( element, options ) {
6767
this._defaults = defaults;
6868

6969
this.init();
70-
this.displayIcons();
7170
}
7271

7372
// Initializer
@@ -151,6 +150,8 @@ Github.prototype.applyTemplate = function ( repo ) {
151150
$widget = githubRepo.toHTML();
152151

153152
$widget.appendTo( this.$container );
153+
154+
this.displayIcons();
154155
};
155156

156157
// -- Attach plugin to jQuery's prototype --------------------------------------

0 commit comments

Comments
 (0)