Skip to content
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

"Uncaught TypeError: Cannot call method 'isArray' of undefined" #242

Closed
kevinquillen opened this issue Oct 5, 2013 · 2 comments
Closed

Comments

@kevinquillen
Copy link

Using jQuery 1.8 and Pickadate, I get an error on line 191 of picker.date.js:

Uncaught TypeError: Cannot call method 'isArray' of undefined

// If it’s an array, convert it into a date and make sure
    // that it’s a valid date – otherwise default to today.
    else if ( $.isArray( value ) ) {

If I change all instances of '$.' to 'jQuery.' in the script, then it works without an issue.

I am using this within Drupal 7.23 if that matters - I believe this is a scope issue but not sure where to correct it.

@kevinquillen
Copy link
Author

For reference, here is the module I am building.

https://drupal.org/project/pickadate

Nothing special about the JS invocation.

Here is a Zurb plugin I integrated recently, I did not change anything about the script whatsoever and it works.

https://github.com/zurb/twentytwenty/blob/master/js/jquery.twentytwenty.js

@amsul
Copy link
Owner

amsul commented Oct 13, 2013

Fixed in v3.3

Cheers!

@amsul amsul closed this as completed Oct 13, 2013
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

2 participants