Skip to content

Commit

Permalink
fixed error with excanvas call
Browse files Browse the repository at this point in the history
  • Loading branch information
Zettersten committed Mar 21, 2012
1 parent 7cf518b commit 8a22718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jquery.gracket.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@
var canvas = document.getElementById(node.canvasId);

// if we are using excanvas
if (G_vmlCanvasManager) G_vmlCanvasManager.initElement(canvas);
if (G_vmlCanvasManager !== undefined) {
G_vmlCanvasManager.initElement(canvas);
};

var ctx = canvas.getContext('2d');

Expand Down
2 changes: 1 addition & 1 deletion jquery.gracket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a22718

Please sign in to comment.