Skip to content

Commit

Permalink
Check type of G_vmlCanvasManager.
Browse files Browse the repository at this point in the history
Actual example of a problematic case is ``typeof(G_vmlCanvasManager) == false``.
  • Loading branch information
epost committed Apr 24, 2015
1 parent 05a1bbf commit 20a1140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/canvas.js
Expand Up @@ -9,7 +9,7 @@ var CanvasRenderer = function(el, options) {

el.appendChild(canvas);

if (typeof(G_vmlCanvasManager) !== 'undefined') {
if (typeof(G_vmlCanvasManager) == 'object') {
G_vmlCanvasManager.initElement(canvas);
}

Expand Down

0 comments on commit 20a1140

Please sign in to comment.