Skip to content

Commit 0e424f7

Browse files
author
squirrel
authored
Update jquery.cycle2.loader.js
fix for jQuery 3.0 deprecate .load() function jakeparis referenced this pull request on Jun 23, 2016 malsup#779 cycle2 & center incompatible with JQuery 3.0.0 malsup#778 malsup#778
1 parent 4b48add commit 0e424f7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/jquery.cycle2.loader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ $(document).on( 'cycle-bootstrap', function( e, opts ) {
5151
imageLoaded();
5252
}
5353
else {
54-
$(this).load(function() {
54+
// fix for jQuery 3.0 deprecate .load() function
55+
// jakeparis referenced this pull request on Jun 23, 2016 https://github.com/malsup/cycle2/pull/779
56+
// cycle2 & center incompatible with JQuery 3.0.0 #778 https://github.com/malsup/cycle2/issues/778
57+
$(this)on("load", function() {
5558
imageLoaded();
5659
}).on("error", function() {
5760
if ( --count === 0 ) {

0 commit comments

Comments
 (0)