Franklinjagan / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

allow to utilize native canvas in IE9 #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when I try to use jsPlumb in Internet Explorer beta 
and set document mode to 'edge'
library complains about lack of g_vml_manager

my suggestions
perhaps you should check browser version too
and get rid of 
    var ie = (/MSIE/.test(navigator.userAgent) && !window.opera) everywhere

-var ie = (/MSIE/.test(navigator.userAgent) && !window.opera);  
+var useVML = $.browser.msie && $.browser.version.substr(0,1)<9

or, alternatively, you can use some hasNativeCanvasSupport() function from 
http://stackoverflow.com/questions/2745432/best-way-to-detect-that-html5-canvas-
is-not-supported

Original issue reported on code.google.com by astro64m@googlemail.com on 16 Nov 2010 at 7:34

GoogleCodeExporter commented 9 years ago
(I assumed ie var was used only to resolve excanvas-related issues)

Original comment by astro64m@googlemail.com on 16 Nov 2010 at 8:09

GoogleCodeExporter commented 9 years ago
can't use "$.browser.msie"; jsPlumb is not only for use with jQuery.  could 
probably use one of methods in the link you supplied. i like how modernizr does 
it.

Original comment by simon.po...@gmail.com on 21 Nov 2010 at 5:20

GoogleCodeExporter commented 9 years ago
fixed in 1.2.4-RC1 now.  will verify when 1.2.4 is released.

Original comment by simon.po...@gmail.com on 25 Nov 2010 at 9:42

GoogleCodeExporter commented 9 years ago

Original comment by simon.po...@gmail.com on 27 Nov 2010 at 1:14