Skip to content

Init event wasn't triggered#166

Open
mamzellejuu wants to merge 2 commits intovasyl-stanislavchuk:masterfrom
nurun:feature/oninit-fix
Open

Init event wasn't triggered#166
mamzellejuu wants to merge 2 commits intovasyl-stanislavchuk:masterfrom
nurun:feature/oninit-fix

Conversation

@mamzellejuu
Copy link
Copy Markdown

@mamzellejuu mamzellejuu commented Nov 30, 2016

The script never enter in

slider.on('init', function (sl) {
  if (attrs.onInit) {
    scope.onInit();
  }
  if (currentIndex != null) {
    return sl.slideHandler(currentIndex);
  }
});

The listener should be created before the slick plugin initialization. This will make sure that the event is not run before the listener created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant