Skip to content

Commit

Permalink
Merge pull request #45 from dramalho/patch-1
Browse files Browse the repository at this point in the history
Make plugin compatible with jQuery 3.0
  • Loading branch information
akv2 committed Oct 11, 2016
2 parents 90c24f4 + 752c2e3 commit 797f192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/js/jquery.maximage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

// Create new image object
var $img = $('<img/>');
$img.load(function() {
$img.on('load', function() {
// Once the first image has completed loading, start the slideshow, etc.
if(preload_count==0) {
// Only start cycle after first image has loaded
Expand Down Expand Up @@ -694,4 +694,4 @@
onFirstImageLoaded: function(){},
onImagesLoaded: function(){}
}
})(jQuery);
})(jQuery);

0 comments on commit 797f192

Please sign in to comment.