fix to font loading code

This commit is contained in:
sbarman 2011-07-08 18:24:22 -07:00
parent 7e42cf781b
commit c06c14a72a

View File

@ -184,7 +184,8 @@ var FontLoader = {
'message', 'message',
function(e) { function(e) {
var fontNames = JSON.parse(e.data); var fontNames = JSON.parse(e.data);
for (var i = 0; i < fontNames.length; ++i) { // set all the fonts to loaded (not sure if this is correct)
for (var i = 0; i < ids.length; ++i) {
var font = Fonts.lookupById(ids[i]); var font = Fonts.lookupById(ids[i]);
font.loading = false; font.loading = false;
} }