rgrove / jquery-yui3-rosetta-stone

A guide to idioms in YUI 3 and jQuery.
BSD 3-Clause "New" or "Revised" License
65 stars 20 forks source link

inArray translation incorrect #21

Closed Pete-learningpool closed 11 years ago

Pete-learningpool commented 11 years ago

$.inArray(value, array)

is equivalent to

Y.Array.indexOf(array, value)

NOT

Y.Array.indexOf(value, array)

source: http://yuilibrary.com/yui/docs/api/classes/Array.html#method_indexOf

rgrove commented 11 years ago

Good catch! Thanks.