devmark / angular-slick-carousel

Angular directive for slick-carousel
http://devmark.github.io/angular-slick-carousel/
MIT License
353 stars 125 forks source link

Incorrect element.one instead of element.on for $destroy #71

Closed pdanpdan closed 4 years ago

pdanpdan commented 8 years ago
element.one('$destroy', function () {
  destroy();
});

should be

element.on('$destroy', function () {
  destroy();
});