js/OverlayScrollbars.js
function(item, arr) {
                for (var i = 0; i < arr[LEXICON.l]; i++)
                    //Sometiems in IE a "SCRIPT70" Permission denied error occurs if HTML elements in a iFrame are compared
                    try {
                        if (arr[i] === item)
                            return i;
                    }
                    catch(e) { }
                return -1;
            }
function(item, arr) {
                for (var i = 0; i < arr[LEXICON.l]; i++)
                    //Sometiems in IE a "SCRIPT70" Permission denied error occurs if HTML elements in a iFrame are compared
                    try {
                        if (arr[i] === item)
                            return i;
                    }
                    catch(e) { }
                return -1;
            }
function ( item , arr ) { for ( var i = 0 ; i < arr [ LEXICON . l ] ; i ++ ) //Sometiems in IE a "SCRIPT70" Permission denied error occurs if HTML elements in a iFrame are compared try { if ( arr [ i ] === item ) return i ; } catch ( e ) { } return - 1 ; }
Checks whether a item is in the given array and returns its index.
@param item The item of which the position in the array shall be determined.
@param arr The array.
@returns {number} The zero based index of the item or -1 if the item isn't in the array.
Checks whether a item is in the given array and returns its index .