simplifying the logic for the vmlCanvasManager check

This commit is contained in:
Danny Yoo 2011-09-19 11:21:04 -04:00
parent ae415aa09b
commit 96c168845f

View File

@ -139,7 +139,7 @@ var makeCanvas = function(width, height) {
// KLUDGE: IE compatibility uses /js/excanvas.js, and dynamic
// elements must be marked this way.
if (window && typeof window.G_vmlCanvasManager != 'undefined') {
if (window.G_vmlCanvasManager) {
canvas = window.G_vmlCanvasManager.initElement(canvas);
}
return canvas;