I would like to extend the pause function in slick. https://github.com/kenwheeler/slick/blob/master/slick/slick.js#L1590
Here is what I have so far, but I am unable to access the pause function with $.fn.slick.prototype.pause;
(function ($) {
var _original = $.fn.slick.prototype.pause;
function trigger(target, name, relatedTarget) {
target.trigger($.Event(name, { relatedTarget: relatedTarget }));
}
$.extend($.fn.slick.Constructor.prototype, {
pause: function () {
console.log("bleh")
}
});
})(jQuery);
Anyway I could do this?