simplifying the logic for the vmlCanvasManager check
This commit is contained in:
parent
ae415aa09b
commit
96c168845f
|
@ -139,7 +139,7 @@ var makeCanvas = function(width, height) {
|
||||||
|
|
||||||
// KLUDGE: IE compatibility uses /js/excanvas.js, and dynamic
|
// KLUDGE: IE compatibility uses /js/excanvas.js, and dynamic
|
||||||
// elements must be marked this way.
|
// elements must be marked this way.
|
||||||
if (window && typeof window.G_vmlCanvasManager != 'undefined') {
|
if (window.G_vmlCanvasManager) {
|
||||||
canvas = window.G_vmlCanvasManager.initElement(canvas);
|
canvas = window.G_vmlCanvasManager.initElement(canvas);
|
||||||
}
|
}
|
||||||
return canvas;
|
return canvas;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user