Skip to content

Issue with "destroy" cycle #5

Description

@fazedesigns

Hi, this is so great you are keeping cycle2 alive!

I am having an issue when I destroy a slideshow.
I am trying to change the carousel visible count on different size screens:

var width = $(window).width(); // Checking size again after window resize
if ( width < 768 ) {
$('.carousel_logos').cycle( "destroy" );
$('.logo_block .carousel_logos').cycle({
carouselVisible : 2,
autoHeight : 0
});
}

I am then getting this error:

jQuery.Deferred exception: this.varType is not a function. (In 'this.varType( $._data )', 'this.varType' is undefined) (2)

line 990
var clean = (this.varType($._data) === 'function') ? $._data : $.noop;

Is this an issue? Or am I doing this wrong?
Thanks!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions