jquery.browser in a library using jQuery1.9

149 views Asked by At

This is a code snippet from datatables Colvis which is generating error. Works fine with jQuery1.8 or so....But complaining with jQuery1.9

if ( jQuery.browser.msie && jQuery.browser.version == "6.0" )
{
    that._fnDrawCallback();
}

error

TypeError: jQuery.browser is undefined

What could be the replacement or do I need to downgrade my jQuery..I saw jquery migrations as well, but was not much helpful.

1

There are 1 answers

0
beebek On

Basically it was not a solution, but although I just need to run the code, I used some dirty trick....although I could have simply pass the if condition...

        // if ( jQuery.browser.msie && jQuery.browser.version == "6.0" )
        if ( jQuery.support.boxModel )
        {
            that._fnDrawCallback();
        }