philogb / jit

The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web
http://thejit.org
Other
1.51k stars 297 forks source link

Problems with browsermode IE8 #47

Open Nisse43 opened 13 years ago

Nisse43 commented 13 years ago

Hi,

In browsermode IE8 the native canvas support check falsely becomes true: In order for this to work I had to change the check from: nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), to: nativeCanvasSupport = (typeof(G_vmlCanvasManager) == 'undefined') && (typeOfCanvas == 'object' || typeOfCanvas == 'function'),

This had to be done in the init file and in the jit.Canvas.js from: supportsCanvas = (canvasType == 'object' || canvasType == 'function'); to: supportsCanvas = (typeof(G_vmlCanvasManager) == 'undefined') && (canvasType == 'object' || canvasType == 'function');

Thank you for all your work hope this can help to solve 1 browser incompatibility issue :)

br. Kim