Issue #710 resolved

Compatibility with jQuery v1.9+

Anonymous created an issue

jqplot is not compatible with jQuery v1.9.0 (Released yesterday).

Example of errors:

Uncaught TypeError: Cannot read property 'msie' of undefined jquery.jqplot.min.js:57 Uncaught TypeError: undefined is not a function jqplot.barRenderer.min.js:57 Uncaught TypeError: undefined is not a function jqplot.logAxisRenderer.min.js:57 Uncaught TypeError: Cannot call method 'push' of undefined jqplot.highlighter.min.js:57 Uncaught TypeError: undefined is not a function jqplot.dateAxisRenderer.min.js:57 Uncaught TypeError: undefined is not a function jqplot.categoryAxisRenderer.min.js:57 Uncaught TypeError: Object [object Object] has no method 'live'

Comments (4)

  1. jbogdani

    The $.browser and .live() are deprecated in jQuery 1.9.0.

    I fixed it temporary by removing reference to $.browser, around line 398.

    // replaced this:
    //$.jqplot.use_excanvas = ($.browser.msie && !$.jqplot.support_canvas()) ? true : false;
    // with
    $.jqplot.use_excanvas = ((!$.support.boxModel || !$.support.objectAll || !$support.leadingWhitespace) && !$.jqplot.support_canvas()) ? true : false;
    

    Looking forward for the final solution

  2. Radium3D

    I too fixed this issue by simply changing the reference to $.browser.msie to $.support.boxModel in jquery.jqplot.min.js as stated by jbogdani above.

  3. Log in to comment