Skip to content

Commit

Permalink
Add callback methods, play, stop
Browse files Browse the repository at this point in the history
  • Loading branch information
rubentd committed Apr 9, 2015
1 parent 6aa4393 commit da51907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.gifplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ $.fn.isOnScreen = function(){
//Setup gifplayer object
var gp = new GifPlayer($(this), null);
gp.options = {};
gp.options = $.extend({}, $.fn.gifplayer.defaults, gp.options);
gp.wrapper = $(this).parent();
gp.spinnerElement = gp.wrapper.find('.spinner');
gp.playElement = gp.wrapper.find('.play-gif');
Expand Down

0 comments on commit da51907

Please sign in to comment.