menu_hover,js upgrading from JQuery 1.7 to Jquery 3.0

menu_hover,js upgrading from JQuery 1.7 to Jquery 3.0

I am stuck updating the menu_hover.js file as the Jquery 3 no longer supports browser.msie. It was dropped as of Jquery 1.9 and is no longer supported. Can somebody please help me replace / redefine the following line, which is the problem.

if ($.browser.msie && $.browser.version.substr(0,1)<7)

here is the original menu_hover.js file:

// JavaScript Document  // menu_hover.js  $(function() { if ($.browser.msie && $.browser.version.substr(0,1)<7) { $('li').has('ul').mouseover(function(){ $(this).children('ul').show(); }).mouseout(function(){ $(this).children('ul').hide(); }) } });


 

I have already tried this jquery-migrate code I have even tried the jquery-migrate1.2 code all its say is the browser.msie is no longer supported, it does not give an answer to the question, nor does it attempt to give a solution.

anybody got an idea how to modify the code line

if ($.browser.msie && $.browser.version.substr(0,1)<7)

so its compliant with the Jquery 3.0 code

Thanks