#14288 closed defect (fixed)
Loading a custom layer that includes gfx fails under IE7/8
Reported by: | Patrick Ruzand | Owned by: | Patrick Ruzand |
---|---|---|---|
Priority: | high | Milestone: | 1.7.1 |
Component: | DojoX GFX | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If a custom layer file is created that includes dojox.gfx.canvas, and that layer file is loaded on a browser which doesn't properly support the canvas element, then the following code will cause the layer file evaluation to stop and an Error is raised:
if(typeof dojo.doc.createElement("canvas").getContext("2d").fillText != "function"){ canvas.Text.extend({ getTextWidth: function(){ return 0; }, _renderShape: function(){} }); }
Specifically, IE browsers break on the call to getContext. This is problematic primarily because this code will run regardless of whether the browser supports canvas or not
Attachments (1)
Note: See
TracTickets for help on using
tickets.
testcase