Permalink
Browse files

update on ready event listeners to jquery 3 compliant syntax

1 parent f7db4ed commit 17f4d8947caaadbb0b4e08ece51f926b364e7300 Greg Westneat committed Jan 10, 2017
Showing with 1 addition and 2 deletions.
  1. +1 −2 slick/slick.js
View
@@ -794,7 +794,6 @@
$('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
$(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
- $(document).off('ready.slick.slick-' + _.instanceUid, _.setPosition);
};
@@ -1406,7 +1405,7 @@
$('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
$(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
- $(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition);
+ $(document).ready(_.setPosition);
};

0 comments on commit 17f4d89

Please sign in to comment.