Function 'indexOf' is not supported in IE9 documentMode 7.

IndexOf is not supported by documentMode 7, so function 'jQuery.inArray' is used instead.
Merge pull request #1136 from najor/hotfix-0.24.x-fix-indexof

Function 'indexOf' is not supported in IE9 documentMode 7.