@vpmedia/phaser 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/phaser",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@ export default class {
37
37
  this.useXDomainRequest = false;
38
38
  this._warnedAboutXDomainRequest = false;
39
39
  this.enableParallel = true;
40
- this.maxParallelDownloads = 6;
40
+ this.maxParallelDownloads = 5;
41
41
  this._withSyncPointDepth = 0;
42
42
  this._fileList = [];
43
43
  this._flightQueue = [];
@@ -796,8 +796,8 @@ export default class {
796
796
  }
797
797
 
798
798
  fileError(file, xhr, reason) {
799
- const url = file.requestUrl || this.transformUrl(file.url, file);
800
- let message = 'error loading asset from URL ' + url;
799
+ // const url = file.requestUrl || this.transformUrl(file.url, file);
800
+ let message = 'Error loading asset';
801
801
  if (!reason && xhr) {
802
802
  reason = xhr.status;
803
803
  }
@@ -200,6 +200,7 @@ export default class {
200
200
  this._sound.stop(0);
201
201
  } catch (e) {
202
202
  // pass
203
+ this.game.exceptionHandler(e);
203
204
  }
204
205
  }
205
206
  if (this.externalNode) {
@@ -385,7 +386,8 @@ export default class {
385
386
  try {
386
387
  this._sound.stop(0);
387
388
  } catch (e) {
388
- // Thanks Android 4.4
389
+ // pass
390
+ this.game.exceptionHandler(e);
389
391
  }
390
392
  }
391
393
  if (this.externalNode) {
@@ -165,7 +165,7 @@ export default class {
165
165
  }
166
166
  });
167
167
  } catch (e) {
168
- // pass
168
+ scope.game.exceptionHandler(e);
169
169
  }
170
170
  }
171
171
  }