Created attachment 536657 [details] [diff] [review]
Unfortunately, I *have* to use IndexOf() given that, if I understand it correctly, we have an array of menu that reflects the DOM and we will have to look for the index at some point. It will be slower but nothing significant I believe.
Created attachment 536666 [details] [diff] [review]
I did update the wrong patch... :(