abouolia/sticky-sidebar

jQuery .on() method can't work with StickySidebar events;

RomanAkhma opened this issue · 1 comments

How to reproduce:

$('.sidebar')
  .on('affix.bottom.stickySidebar', function handler() {
    // This handler will never be called
  })
  .stickySidebar();

StickySidebar events contains dots in their type. jQuery use dot as delimiter for event namespaces. So you can't attach handler to that events with jQuery .on() method.

@RomanAkhma so I guess it's not possible to use events with the jQuery version?