Skip to content

Commit 348e3c1

Browse files
committed
LoaderParser.bitmapFont updated so xml parsing works properly on IE9 (thanks @georgiee)
1 parent 838027a commit 348e3c1

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Version 2.0.4 - "Mos Shirare" - in development
155155
* Fixed issue where game pause/resume could incorrectly increment paused Timers (thanks @georgiee, fix #759)
156156
* Fixed issue where Animations resuming from a pause would skip frames (thanks @merixstudio, fix #730)
157157
* Tilemap.fill would throw an error if called on a blank tilemap full of null values (thanks @DrHackenstein, fix #761)
158+
* LoaderParser.bitmapFont updated so xml parsing works properly on IE9 (thanks @georgiee)
158159

159160

160161
### ToDo

src/loader/LoaderParser.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,6 @@ Phaser.LoaderParser = {
2020
*/
2121
bitmapFont: function (game, xml, cacheKey, xSpacing, ySpacing) {
2222

23-
if (!xml || /MSIE 9/i.test(navigator.userAgent))
24-
{
25-
if (typeof(window.DOMParser) === 'function')
26-
{
27-
var domparser = new DOMParser();
28-
xml = domparser.parseFromString(this.ajaxRequest.responseText, 'text/xml');
29-
}
30-
else
31-
{
32-
var div = document.createElement('div');
33-
div.innerHTML = this.ajaxRequest.responseText;
34-
xml = div;
35-
}
36-
}
37-
3823
var data = {};
3924
var info = xml.getElementsByTagName('info')[0];
4025
var common = xml.getElementsByTagName('common')[0];

0 commit comments

Comments
 (0)