Cleanup: remove iframe and message handler

This commit is contained in:
Yury Delendik 2012-08-17 14:00:35 -05:00
parent 3c1d63055d
commit 8459fef6c3

View File

@ -566,6 +566,9 @@ var FontLoader = {
font.loading = false;
}
request.complete();
// cleanup
document.body.removeChild(frame);
window.removeEventListener('message', fontLoaderMessage, false);
},
false);