Skip to content

Commit

Permalink
Fixed error in SVG tag loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdamien committed Dec 11, 2014
1 parent 93dbcdf commit 8ca261e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preloadjs/loaders/SVGLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ this.createjs = this.createjs || {};
var xml = createjs.DataUtils.parseXML(loader.getResult(true), "text/xml");
var tag = loader.getTag();

if (!this._preferXHR) {
if (!this._preferXHR && document.body.contains(tag)) {
document.body.removeChild(tag);
}

Expand All @@ -108,4 +108,4 @@ this.createjs = this.createjs || {};

createjs.SVGLoader = createjs.promote(SVGLoader, "AbstractLoader");

}());
}());

0 comments on commit 8ca261e

Please sign in to comment.