inArray function parameters switched #4

Closed
ericjang opened this Issue Aug 23, 2011 · 0 comments

Comments

Projects
None yet
2 participants

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.

@rwaldron rwaldron closed this in 115dd95 Aug 23, 2011

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