You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There however seems to be a bug with the plugin where its destroy method does not properly remove slides from the carousel instance.
angular-slick.js has the following Angular Watch which is triggered every time a change is made to the settings object:
return scope.$watch('settings', function (newVal, oldVal) { if (newVal !== null) { return destroyAndInit(); } }, true);
My carousel initially loads with 15 slides and every time the destroyAndInit function is run, another 15 slides are erroneously added to the carousel. Because of this I suspect the destroy function is not working as expected. Here is the code for it:
` destroy = function () {
var slickness = angular.element(element);
if (slickness.hasClass('slick-initialized')) {
slickness.remove('slick-list');
slickness.slick('unslick');
}
return slickness;
};`
Any ideas?
The text was updated successfully, but these errors were encountered:
Furthermore the jQuery Event handlers are not removed. So after destroying and (re-)init handlers get called twice.
is there a slickness.off() jQuery call to remove handlers missing?
Hi,
There however seems to be a bug with the plugin where its destroy method does not properly remove slides from the carousel instance.
angular-slick.js has the following Angular Watch which is triggered every time a change is made to the settings object:
return scope.$watch('settings', function (newVal, oldVal) { if (newVal !== null) { return destroyAndInit(); } }, true);
My carousel initially loads with 15 slides and every time the destroyAndInit function is run, another 15 slides are erroneously added to the carousel. Because of this I suspect the destroy function is not working as expected. Here is the code for it:
` destroy = function () {
Any ideas?
The text was updated successfully, but these errors were encountered: