Skip to content

TypeError: flip is undefined[Learn More] flip.js:349:11 #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JDSlimz opened this issue Oct 10, 2017 · 2 comments
Open

TypeError: flip is undefined[Learn More] flip.js:349:11 #125

JDSlimz opened this issue Oct 10, 2017 · 2 comments

Comments

@JDSlimz
Copy link

JDSlimz commented Oct 10, 2017

Just added the library and tried to run it using:

jQuery('#play').flip(true);

I got the error:

TypeError: flip is undefined[Learn More] flip.js:349:11

My Script calls are correct:

wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.2.1.min.js', array(), null, true); wp_enqueue_script('flip', '/wp-content/themes/vote/flip.js', array(), null, true);

I have tried using the cdn version and using jQuery 2.1.4 to no avail.

@level42ca
Copy link

Seems like flip.js isn't being loaded then. Do you have a sample site we can check?

@rasmuschristensen
Copy link

@JDSlimz ensure you have initialized the compoment like $("#card").flip({ trigger: 'toggle' });

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

No branches or pull requests

3 participants