Cleanup: remove iframe and message handler
This commit is contained in:
parent
3c1d63055d
commit
8459fef6c3
@ -566,6 +566,9 @@ var FontLoader = {
|
||||
font.loading = false;
|
||||
}
|
||||
request.complete();
|
||||
// cleanup
|
||||
document.body.removeChild(frame);
|
||||
window.removeEventListener('message', fontLoaderMessage, false);
|
||||
},
|
||||
false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user