Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

inArray function parameters switched #4

Closed
ericjang opened this Issue · 0 comments

2 participants

Eric Jang Rick Waldron
Eric Jang

jQuery's current inArray function takes in parameters in the order of (needle, haystackarray), whereas jQuery.hive.pollen.js's arguments are passed in the reverse order (haystackarray, needle). this causes the inArray function to not work properly unless the user is conscious of te difference between the two libraries!
In addition, jQuery's inArray returns the index of the found element, a slightly different functionality.

Rick Waldron rwaldron closed this in 115dd95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.