galaxy001 / canvas-text

Automatically exported from code.google.com/p/canvas-text
MIT License
0 stars 0 forks source link

canvas-text breaks in some browsers when used in the same folder #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See line 89 of the source code.

src.indexOf(libFileName) > 0 is used where src.indexOf(libFileName) != -1
should be used.

If you use src="canvas.text.js" in your tag and you run a page using a
browser that returns the value of the attribute with .src instead of the
full url (like IE7) then canvas text will break because basePath won't be
set and thus fonts can't be found.

Easy fix, but it caused trouble for me the past few days trying to find out
why only IE was broken when I had ExCanvas and canvas-text.

Original issue reported on code.google.com by nadir.se...@gmail.com on 1 Jun 2009 at 7:37

GoogleCodeExporter commented 9 years ago
Thank you for this bug report! Fixed in r35.

Original comment by fabien.menager on 1 Jun 2009 at 9:22