mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
using new static methods for generating object url when loading html files as well
This commit is contained in:
parent
a0c1d129ce
commit
10eaa46ffa
1 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ var HTMLFile = new Class({
|
|||
|
||||
this.data.onload = function ()
|
||||
{
|
||||
URL.revokeObjectURL(_this.data.src);
|
||||
File.revokeObjectURL(_this.data);
|
||||
|
||||
_this.onComplete();
|
||||
|
||||
|
@ -83,14 +83,14 @@ var HTMLFile = new Class({
|
|||
|
||||
this.data.onerror = function ()
|
||||
{
|
||||
URL.revokeObjectURL(_this.data.src);
|
||||
File.revokeObjectURL(_this.data);
|
||||
|
||||
_this.state = CONST.FILE_ERRORED;
|
||||
|
||||
callback(_this);
|
||||
};
|
||||
|
||||
this.data.src = URL.createObjectURL(blob);
|
||||
File.createObjectURL(this.data, blob, 'image/svg+xml');
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue